vidmarc Posted November 28, 2014 Posted November 28, 2014 Just thought I'd set up a Global percentage discount for today of 25% across the whole store. However when i do so, all "popular products" in the left hand column are displaying as "£0.00". Is this some sort of bug? www.nucleusfilms.com Quote
bsmither Posted December 8, 2014 Posted December 8, 2014 We may be able to help. I say 'may' because (in CC5213) Popular Products (in the standard Kurouto skin, at least) does not display prices. So, we would need to learn what additional code edits were made (or perhaps a plugin/snippet?) to get the regular price and sale price for the Popular Products. The code at GUI->_displayPopularProducts() does not get prices. Quote
vidmarc Posted December 12, 2014 Author Posted December 12, 2014 I'm using the Blueprint skin as standard, no mods. Quote
bsmither Posted December 12, 2014 Posted December 12, 2014 Without being able to run Blueprint myself, I can only make an educated guess: For the currency you use (admin, Currencies), are you using the HTML entity £ or the actual symbol £ (which may or may not be utf-8)? Although it has been recommended in some cases to use the entity, I think CubeCart may have an issue with any code that tries to strip the currency symbol off of the price and sale_price prior to making adjustments. The Fusion Plugin (necessary to run the Blueprint skin) has some hooks that add more data to CubeCart's standard data sets. One such occurrence is in the script /Fusion/classes/product_listing.class.php. Quote
vidmarc Posted December 12, 2014 Author Posted December 12, 2014 I'm not sure what we're using - how do I find out? Quote
bsmither Posted December 12, 2014 Posted December 12, 2014 in admin, Currencies, look at the symbol for the British Pound. Hopefully, when in a text field, and if using the entity, it will show £. If not using the entity, it will show something else. (Your store must be in the Per-Product Sale mode, as the Popular Products all have prices except Video Nasties.) I am able to switch the store's currency to USD ($) and the sale_price is still zero. So now I have a small amount of doubt that the currency symbol may be causing the problem. Quote
vidmarc Posted December 12, 2014 Author Posted December 12, 2014 It's as per the default setting, "£". All the currencies just use the character and not code. Should I change it to £ ? Quote
bsmither Posted December 12, 2014 Posted December 12, 2014 I am going to say no. Do you have your store (or hosting account) coded to have PHP use an error log? If so, we can judiciously put: error_log("Message"); at key places in the Fusion hooks to see where the sale_price is getting dropped. Quote
Dirty Butter Posted December 12, 2014 Posted December 12, 2014 I don't normally use the Popular Products section on our Blueprint store. So I tried it to see what I get - it shows the $ Sale Price correctly for me. I've taken it back offline, but will experiment as needed tomorrow if it will help. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.