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
  #11  
Old 12-01-2010, 05:38 AM
Shane Turner's Avatar
Shane Turner is offline
Junior Member
 
Join Date: Oct 2010
Posts: 8
Default


Ok I think it must be due to the fact I'm pasting the script code into the WP page while TinyMCE is turned on... seem to recall issues with this...

I'll have a play with the approach & advise.
  #12  
Old 12-01-2010, 04:05 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 10,847
Default

Quote:
Originally Posted by Shane Turner View Post
Ok I think it must be due to the fact I'm pasting the script code into the WP page while TinyMCE is turned on... seem to recall issues with this...

I'll have a play with the approach & advise.
Yes, the WYSIWYG editor should be disabled, if you insert a HTML/JS code. Otherwise the editor will treat the code as a plain text and it will not work.
__________________
Eugene K.
Ecwid Team

@ecwid | Facebook | Ecwid Knowledge Base
  #13  
Old 12-02-2010, 08:55 AM
Shane Turner's Avatar
Shane Turner Shane Turner is offline
Junior Member
 
Join Date: Oct 2010
Posts: 8
Default GOT IT!

Right - here's what worked for me:
__________________________________________

<script type="text/javascript">
//<![CDATA[
<!--

ecwidMessages = {
"AddToBagWidget.product_added":"The product was added to your shopping cart",
"BreadCrumbs.your_bag":"Your shopping cart",
"Checkout.items_removed":"There were removed items in your cart, because they are temporarily unavailable. Please, check your cart\!",
"Checkout.items_unavailable":"Items in your cart are temporarily unavailable, cannot proceed\!",
"CheckoutServiceImpl.add_items":". Please add some more items to your cart.",
"CheckoutServiceImpl.remove_items":". Please remove items from your cart.",
"DnDLabel.drag_me":"Drag & Drop Me to the Cart",
"EmptyShoppingCartPanel.empty":"Your Shopping Cart is empty",
"Minicart.open_bag":"Open Cart",
"Minicart.out_of_stock":"The product is out of stock and cannot be put in the cart",
"Minicart.shopping_bag":"Shopping Cart",
"ProductBrowser.your_cart":"Your cart",
"ProductDetails.all_items_in_bag":"All items are in the cart",
"ProductDetails.in_bag":"\ in the cart",
"ProductDetails.In_bag":"In the Cart",
"ShoppingCart.open_bag":"Please open the cart and remove some products or go to checkout.",
"ShoppingCart.the_number_of_products_":"The number of different products in your cart",
"ShoppingCartView.clear":"Clear Cart",
"ShoppingCartView.shopping_bag":"Your Shopping Cart",
"TableProductsContainer.add_to_bag":"Add to Cart"
}
// -->
//]]>

</script>
__________________________________________

Took me a while because it's the first time I've used javascript in Wordpress... the red text above being what was missing.

But yay, it's now working

Hope this helps another WP / javascript newbie...

Cheers
Glen
  #14  
Old 12-02-2010, 03:25 PM
Qetzal's Avatar
Qetzal Qetzal is offline
Ecwid Team
 
Join Date: Sep 2009
Posts: 10,847
Default

Glad to hear that the problem is fixed!
__________________
Eugene K.
Ecwid Team

@ecwid | Facebook | Ecwid Knowledge Base
 
The information in this thread might be outdated
If the solution did not help, please, check our Help Portal or contact Ecwid Team.

Tags
add to bag, add to cart, floating, minicart

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