Old price in related products now showing

kostianev
67 Posts
kostianev posted this 12 April 2020

Dear, my OLD prices for products is not showing in Related Products and other modules with VirtueMart products. Can you assist me? Here is demo.

Dear, my OLD prices for products is not showing in Related Products and other modules with VirtueMart products. Can you assist me? Here is [demo][1]. [1]: http://dev.moon.bg/web/gotti/index.php/%D0%BE%D0%B1%D1%83%D0%B2%D0%BA%D0%B8/%D0%B4%D0%B0%D0%BC%D1%81%D0%BA%D0%B8-%D0%BE%D0%B1%D1%83%D0%B2%D0%BA%D0%B8-%D0%B0%D0%BC%D0%B1%D1%80%D0%B0-%D1%81%D0%B8%D0%B2%D0%B8-detail
Vote to pay developers attention to this features or issue.
4 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 13 April 2020

Hello,

Please try a CMS Code control from the Insert code and use an appropriate code:
https://answers.themler.io/articles/67028/tips-and-tricks#t_price

Sincerely,
Nettie

Hello, Please try a CMS Code control from the Insert code and use an appropriate code: https://answers.themler.io/articles/67028/tips-and-tricks#t_price Sincerely, Nettie
kostianev
67 Posts
kostianev posted this 13 April 2020

Okay, I am able to add the Base price with CMS code, but get this error on front page:

0 - Using $this when not in object context

I am using this code in Related Products as CMS Code:

<?php echo $this-?>currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices ); ?>

Okay, I am able to add the Base price with CMS code, but get this error on front page: > 0 - Using $this when not in object context I am using this code in Related Products as CMS Code: > &lt;?php echo $this-?&gt;currency->createPriceDiv ( 'basePrice', 'COM_VIRTUEMART_PRODUCT_BASEPRICE', $this->product->prices ); ?>
Support Team
Support Team posted this 16 April 2020

Hello,

Where exactly did you add the CMS Code control with the code in Themler? On Product Details template?

Sincerely,
Nettie

Hello, Where exactly did you add the CMS Code control with the code in Themler? On Product Details template? Sincerely, Nettie
kostianev
67 Posts
kostianev posted this 16 April 2020

Yes, I add the code on product details page, in Related Products item.

Yes, I add the code on product details page, in Related Products item.
You must log in or register to leave comments