The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.
 
 
Thread Tools Display Modes
  #1  
Old 03-15-2015, 07:42 PM
CryptoJohn's Avatar
CryptoJohn is offline
 
Join Date: Feb 2015
Posts: 14
Default

javascript additions to ecwid cart?


I have an outside site that updates product prices via javascript every few seconds and passes results to DOM id's.

Can I add this js functionality to my ecwid cart? If so can I add it globally then just add the DOM id's to html under each product or does each product need the js?

I'd also like to pass changes to the <div class="ecwid-productBrowser-head">item 1 x 100 units</div> of each item to update the amount of each product the customer can get for xdollars.

please provide a detailed answer on how to implement.

thanks,
john
  #2  
Old 03-17-2015, 03:35 PM
Cyril D's Avatar
Cyril D Cyril D is offline
Ecwid Team
 
Join Date: Feb 2015
Location: Ecwid HQ
Posts: 530
Default

Quote:
Originally Posted by CryptoJohn View Post
I have an outside site that updates product prices via javascript every few seconds and passes results to DOM id's.

Can I add this js functionality to my ecwid cart? If so can I add it globally then just add the DOM id's to html under each product or does each product need the js?

I'd also like to pass changes to the <div class="ecwid-productBrowser-head">item 1 x 100 units</div> of each item to update the amount of each product the customer can get for xdollars.

please provide a detailed answer on how to implement.

thanks,
john
Hello John,

Ecwid is a SaaS hosted shopping cart, which basically means that all the store data are stored on our servers and delivered to you and your customers by means of AJAX.

This approach is great because it allows you seamlessly integrate your Ecwid store to any existing website, blog or even a social network such as Facebook.

And since all the data are stored on our servers, you cannot update product prices simply by changing them in HTML code of the page.

Now to your question, you can change the product prices thus:
  1. Manually: go to your Ecwid Control Panel > Catalog > Products and change your product prices there.
  2. Via export/import feature: export existing product prices in a CSV file, specify new prices and import this file in Ecwid.
  3. Via Ecwid API: you can develop your own custom application that will communicate with Ecwid via API and change your product prices every few minutes automatically.

I believe in your case you should use the third option. Of course such development will require programming skills, which is out of scope of just a customer support service. So if you are not a developer, you should hire somebody for this work.

If you need a professional help with the development, please, feel free to contact Qualiteam company (email at sales@qtmsoft.com to request a quote), or to any other developer.
__________________
Cyril D.
Ecwid Customer Care Team

More tips and hints on Ecwid use in our Help Center

⬇ Please click Thanks if my reply helped you.
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
api, javascript

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:41 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.