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 11-06-2013, 12:00 PM
Daniele Tondi2's Avatar
Daniele Tondi2 is offline
 
Join Date: Oct 2012
Posts: 2
Default

Product Dynamic HTML


there is a way to get the HTML code of a product in a dynamic way? I have a paid account and would like to take dynamically html code to insert in the pages of my site at run time. I need the same view of the widget product. thanks
  #2  
Old 11-06-2013, 01:18 PM
Eugene Rimmer's Avatar
Eugene Rimmer Eugene Rimmer is offline
Senior Member
 
Join Date: Jan 2011
Location: Ecwid headquarters
Posts: 7,765
Default

Sure, just use the Product API: http://kb.ecwid.com/w/page/25285101/...hodgetaproduct
  #3  
Old 11-10-2013, 09:57 AM
Daniele Tondi2's Avatar
Daniele Tondi2 Daniele Tondi2 is offline
 
Join Date: Oct 2012
Posts: 2
Default

Thanks I had already seen this documentation but I should recreate the form to add to the cart. It's possible?
Where can I find documentation on the names of the form fields?
Thanks again.

Hi, width product API, I was able to recreate the product form in my site. I try to add the xAddToBag function inside the form and the add to bag function goes perfectly width text area and select input fields. But with radio button I'm not able because I have not way to get (I believe) the correct input field ID (ex: gwt-uid-737) . My goal is to import dynamically the same products view in my site without copy and paste the product HTML code.
Thanks in advance.

Last edited by Makfruit; 11-13-2013 at 08:44 AM.
  #4  
Old 11-13-2013, 08:46 AM
Matt Ecwid's Avatar
Matt Ecwid Matt Ecwid is offline
Ecwid Team
 
Join Date: Oct 2011
Posts: 4,947
Default

Quote:
Originally Posted by Daniele Tondi2 View Post
Thanks I had already seen this documentation but I should recreate the form to add to the cart. It's possible?
Where can I find documentation on the names of the form fields?
Thanks again.

Hi, width product API, I was able to recreate the product form in my site. I try to add the xAddToBag function inside the form and the add to bag function goes perfectly width text area and select input fields. But with radio button I'm not able because I have not way to get (I believe) the correct input field ID (ex: gwt-uid-737) . My goal is to import dynamically the same products view in my site without copy and paste the product HTML code.
Thanks in advance.
Hello,

I am afraid there is no easy way to dynamically generate product option drop downs with appropriate IDs to make them work in your script. You may consider on of the following solutions:
1) Use links to the product browser.
On the pages where you want to dynamically create and list single product widgets, display only product titles, short descriptions and thumbnails. Instead of the add to cart functionality, use a link to the product page inside product browser on a separate page, where customer will be able to see product details, choose option values and add product to the cart.

2) Do not display product options at all and require customers to select options upon adding a product to the cart.
To do so, you will need to set the 'Adding products to cart without selected options' setting in your control panel as 'Ask customer to select options'. This way, once a customer clicks Add to bag button in a single product widget, a popup-like window with option selection will appear. Screenshots:
- Control panel: http://take.ms/yG3npT
- Frontent: http://take.ms/mUpu32

Hope that helps.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
html code

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 09:54 PM.
Powered by vBulletin® Version 3.8.11. Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.