View Single Post
  #4  
Old 09-20-2012, 11:53 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 stevensmedia View Post
Thanks so much for the quick and helpful reply. Unfortunately, neither solution suits our needs so we'll manually add products to the Home page rather than use the Ecwid embed code.

Suggestion: It would be really cool if we could select button functionality when generating the embed code, either Add To Cart OR More Info (go to product page.) That way, HTTP/S wouldn't be an issue with the embed code.
Yes, you can place the links to the product pages there instead of the add to bag buttons. Here is the details.

Since you use the single product widget for displaying products on the main page, you can directly edit the HTML code of the product. Currently the add to bag button code is as follows:
Code:
<script type="text/javascript">
xAddToBag('productid=14366252');
</script>
It automatically loads the Ecwid add to bag button and provide the corresponding functionality. If you want to display just a link like 'More info' or a button linked to the product page, you will need to replace the code above with the HTML code of the link or button. For example it could look like this:
Code:
<a href="https://www.coinadvisor.com/store/#ecwid:mode=product&product=14366252">More info</a>
Please refer to this page for the details on how to get product page URL:
http://kb.ecwid.com/w/page/23947954/...0or%20category

This workaround won't solve the different cart contents issue though - the minicart widget on the main page will still display different items count compared to the one in minicart on the store page. In order to prevent possible confusing, you can remove the minicart widget from the main page.
__________________
Matt K
Ecwid Team

Ecwid Guide for Beginners

Ecwid Help Center

Ecwid video tutorials
The Following 2 Users Say Thank You to Matt Ecwid For This Useful Post: