Re: VM Scroller

  • zoldar
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 9 months ago #17099 by zoldar
Replied by zoldar on topic Re: VM Scroller
The update fixed the styling issues it would appear, but now the price can not be switched on or off? Is it something I have missed?

Please Log in to join the conversation.

More
12 years 9 months ago - 12 years 9 months ago #17119 by ivan.milic
Replied by ivan.milic on topic Re: VM Scroller
Maybe you did not removed :

#VMScrollBoth1 .productPrice{
display:none;
}

I told you previously to add.

EDIT:

this is 100% the case , just checked.
Last edit: 12 years 9 months ago by ivan.milic.

Please Log in to join the conversation.

  • zoldar
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 9 months ago #17132 by zoldar
Replied by zoldar on topic Re: VM Scroller
You were right about the code, removed it and the prices are back. But we are back at the original problem with the prices, they are showing as ex tax. I need to show inc tax not ex. Thank you for taking the time to assist with this though.

Please Log in to join the conversation.

More
12 years 9 months ago #17138 by ivan.milic
Replied by ivan.milic on topic Re: VM Scroller
open modules\mod_vmscroller\helper.php, around line 389 find this:
Code:
if ($show_price) { $db->setQuery("SELECT REPLACE(REPLACE(C.currency_positive_style,'{symbol}',C.currency_symbol ),'{number}',cast(P.product_price as decimal(19,2))) As pricetext FROM #__virtuemart_product_prices as P LEFT JOIN #__virtuemart_currencies as C on C.virtuemart_currency_id = P.product_currency WHERE P.virtuemart_product_id = '" . $product_id . "' LIMIT 1 "); $price_object = $db->loadObject(); //$price = $pr->prices['salesPrice']; $price = '<div class="productPrice">'.$price_object->pricetext.'</div>'; } else $price='';

replace it with this:
Code:
if ($show_price) { $db->setQuery("SELECT REPLACE(REPLACE(C.currency_positive_style,'{symbol}',C.currency_symbol ),'{number}',cast(".$pr->prices['salesPrice']." as decimal(19,2))) As pricetext FROM #__virtuemart_product_prices as P LEFT JOIN #__virtuemart_currencies as C on C.virtuemart_currency_id = P.product_currency WHERE P.virtuemart_product_id = '" . $product_id . "' LIMIT 1 "); $price_object = $db->loadObject(); $price = '<div class="productPrice">'.$price_object->pricetext.'</div>'; } else $price='';

Please Log in to join the conversation.

  • zoldar
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
12 years 9 months ago - 2 years 7 months ago #17149 by zoldar
Replied by zoldar on topic Re: VM Scroller
Something went wrong in the replacement, I can not see what it is so have included the helper.php file here for you to look at.Many Thanks for your trouble...
Last edit: 2 years 7 months ago by milos.

Please Log in to join the conversation.

More
12 years 8 months ago - 2 years 7 months ago #17157 by ivan.milic
Replied by ivan.milic on topic Re: VM Scroller
here is file
Last edit: 2 years 7 months ago by milos.

Please Log in to join the conversation.

Time to create page: 0.083 seconds
Powered by Kunena Forum