Round price overlay on product

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat May 11, 2013 12:15 pm
Reply with quote
Report this post
Hi

I changed the currency in the shop and since then the price does not show on the red round overlay when you mouse over on the home page, the price is there in the actual product page.

How do I fix this please.

Many thanks
User avatar
Expert Boarder

teitbite
Mon May 13, 2013 9:17 am
Reply with quote
Report this post
Hi

Please show me Your site.
User avatar
Moderator

GK User
Mon May 13, 2013 10:26 am
Reply with quote
Report this post
teitbite wrote:Hi

Please show me Your site.


Hi

I have emailed these direct as the website is password protected whilst in development mode.

Many thanks and look forward to hearing from you

Darren
User avatar
Expert Boarder

teitbite
Tue May 14, 2013 12:41 pm
Reply with quote
Report this post
Hi

Looks like a bug, please update to the latest module version and check. If it will still be working the same way please send me an access to ftp.
User avatar
Moderator

GK User
Tue May 14, 2013 1:03 pm
Reply with quote
Report this post
teitbite wrote:Hi

Looks like a bug, please update to the latest module version and check. If it will still be working the same way please send me an access to ftp.



Updated to latest version but has not corrected the problem, sorry to say.

Have just sent you FTP details in a private message.

Many thanks
User avatar
Expert Boarder

teitbite
Tue May 14, 2013 4:31 pm
Reply with quote
Report this post
Hi

Looks like the problem is inside VM. When module is using a VM function to create price with currency symbol function returns NULL.

Code: Select all
$currency->createPriceDiv('basePriceWithTax','',$product->prices)


this code is in /modules/mod_news_pro_gk5/portal_modes/product_gallery/controller.php line 151

I will hard code Your currency here to avoid using this function, so the code will looks like this:

Code: Select all
$news_price = '<div class="PricebasePriceWithTax" style="display : block;">'
      .'<span class="PricebasePriceWithTax">£ '. $product->prices['basePriceWithTax'] .'</span>'
      .'</div>'
      .'<div class="PricetaxAmount" style="display : block;">inc. tax: € '.$product->prices['taxAmount'].'</div>';
User avatar
Moderator

GK User
Tue May 14, 2013 5:37 pm
Reply with quote
Report this post
teitbite wrote:Hi

Looks like the problem is inside VM. When module is using a VM function to create price with currency symbol function returns NULL.

Code: Select all
$currency->createPriceDiv('basePriceWithTax','',$product->prices)


this code is in /modules/mod_news_pro_gk5/portal_modes/product_gallery/controller.php line 151

I will hard code Your currency here to avoid using this function, so the code will looks like this:

Code: Select all
$news_price = '<div class="PricebasePriceWithTax" style="display : block;">'
      .'<span class="PricebasePriceWithTax">£ '. $product->prices['basePriceWithTax'] .'</span>'
      .'</div>'
      .'<div class="PricetaxAmount" style="display : block;">inc. tax: € '.$product->prices['taxAmount'].'</div>';



Many thanks for correcting this issue, much appreciated.
User avatar
Expert Boarder

GK User
Tue May 14, 2013 5:44 pm
Reply with quote
Report this post
teitbite wrote:Hi

Looks like the problem is inside VM. When module is using a VM function to create price with currency symbol function returns NULL.

Code: Select all
$currency->createPriceDiv('basePriceWithTax','',$product->prices)


this code is in /modules/mod_news_pro_gk5/portal_modes/product_gallery/controller.php line 151

I will hard code Your currency here to avoid using this function, so the code will looks like this:

Code: Select all
$news_price = '<div class="PricebasePriceWithTax" style="display : block;">'
      .'<span class="PricebasePriceWithTax">£ '. $product->prices['basePriceWithTax'] .'</span>'
      .'</div>'
      .'<div class="PricetaxAmount" style="display : block;">inc. tax: € '.$product->prices['taxAmount'].'</div>';



Sorry one quick question, I dont want the tax element to show as the client just wants the final amount only showing, do I just remove:

.'<div class="PricetaxAmount" style="display : block;">inc. tax: € '.$product->prices['taxAmount'].'</div>';

From the code you added?

Thanks
User avatar
Expert Boarder

teitbite
Wed May 15, 2013 11:24 am
Reply with quote
Report this post
Hi

Yes. That's exactly what You need to do. Without the tax code should looks like:

Code: Select all
$news_price = '<div class="PricebasePriceWithTax" style="display : block;">'
      .'<span class="PricebasePriceWithTax">£ '. $product->prices['basePriceWithTax'] .'</span>'
      .'</div>';
User avatar
Moderator

GK User
Tue May 21, 2013 11:41 am
Reply with quote
Report this post
Hi

I am having a few more issues with the pop-up price on the home page. I am starting to add new products and all new products just show £0 rate, regardless of what you put in as the price.

If you click Add to Cart, it adds the correct rate to the cart so there is still something not quite right with the system.

Are you able to advise on this please.

Many thanks
User avatar
Expert Boarder

teitbite
Tue May 21, 2013 4:11 pm
Reply with quote
Report this post
Hi

I've made a dump of prices values and looks like this new products do not have tax attached. Please take a look at the screenshot and select any other price or check VM configuration and add tax to this products.
User avatar
Moderator

GK User
Tue May 21, 2013 4:54 pm
Reply with quote
Report this post
teitbite wrote:Hi

I've made a dump of prices values and looks like this new products do not have tax attached. Please take a look at the screenshot and select any other price or check VM configuration and add tax to this products.


Many thanks for looking into this, I have now changed the rules of the shop and tax, now it all works perfect :)
User avatar
Expert Boarder

teitbite
Wed May 22, 2013 11:50 am
Reply with quote
Report this post
Hi

Great to hear that :)
User avatar
Moderator


cron