Not working with Slate theme?

Permalink Browser Info Environment
Hi,

if I correctly understand this add on do not work with some themes? What about Slate theme? If it is not working I would like to get my money back :).

At the moment I have added products, settings are set, but buttons to add products to cart do not work...

Type: Discussion
Status: New
audriusv
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi,
It does work with virtually all themes. There are a couple themes that use "greedy" CSS classes which can cause other add-ons to not display as intended, or they have extra Javascript which can clash. So rather than the add-on being at fault, it's actually the theme for not complying with C5 best practice.

In the case of the "Slate" theme try removing this reference from the header.php or footer.php file in your theme:
/packages/theme_slate/themes/slate/js/functions.js

If you do that and the eCommerce Express add-on works fine, then it confirms this file contains Javascript code which is causing the clash. If you can provide a link to where you have installed the add-on, I can take a closer look at the code and provide a more specific recommendation on getting this working.

JB
audriusv replied on at Permalink Reply
audriusv
jb1 replied on at Permalink Reply
jb1
Ok, I see the "automatic_email_obfuscator" package is in use. This would be the first thing causing the clash. There are some email addresses used in the source code for Paypal/Moneybookers/Google Checkout. When that packages try jumbling up the email address it results in invalid HTML code.

Try disabling that and see if it works.

I also noticed the site theme is overriding some styling on the eCommerce Express add-on. One particular area is line 649 of the main.css file.

Hope this helps.

JB
audriusv replied on at Permalink Reply
audriusv
Thank you! After removing "automatic_email_obfuscator" your add-on starts to work... But... When I add product I get message that I have added it. But after I add different product I do not get that message. And in the cart I see two same products. Is it product type is defined by image...? Because it is same image in all products... but it should not be like that... Or this is by design...?

Also how can I change a little bit look of everything and all text to my national language?

Thank you for help!
jb1 replied on at Permalink Reply
jb1
Great to hear that's working.
Yes, each product is assigned a unique ID based on the file name/ID. So if you use the same image for multiple products, it will consider it as the same product behind-the-scenes. As such, the cart is designed to check if the item already exists in the cart when adding a new one, and hides the confirmation message for repeated additions of the same product.

I'd suggest just duplicating that image (even if it looks the same) and use a unique file for each product.

We're currently finalising a major upgrade for the eCommerce Express package so it will support using the same image for multiple products along with a bunch of other new features. Stay tuned on Twitter for news (@c5extras).

Hope this helps.

JB
audriusv replied on at Permalink Reply
audriusv
Other problem is that if I put national currency LTL and make paypal payment I get formed payment by USD but in my currency LTL amount. For example if I put 45LTL price, when I get to paypal it is become 45USD... It is totally wrong...
jb1 replied on at Permalink Reply
jb1
Here is a list of currency codes that Paypal supports:
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_I...
I don't see "LTL" on there. So try one that fits in with Paypal's options and you'll be ok.

Hope this helps.

JB
audriusv replied on at Permalink Reply
audriusv
OK. Will try to use EUR.

Where I can turn off your styling to have theme styling for buttons and other things.
jb1 replied on at Permalink Reply
jb1
It's unlikely a theme will have the right class names for the built-in buttons for eCommerce Express. If you have some CSS knowledge, it will be best for you to edit it yourself. Within the package you'll find a "css_manual" folder with 1 file for each of the current skins.

I suggest using Google Chrome with it's "inspector" tool to easily identify the class names (and even line numbers) where you can edit, and test changes on the fly. Otherwise if you prefer Firefox, there is the Firebug plugin which does the same job.

Hope this helps.

JB

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.