Common price problem (MSRP)

  • Posts: 45
  • Thank you received: 1
11 years 8 months ago #95557

Hi Jerome, i need from a little help, how to hide common price in to product page in site part ?

Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
11 years 8 months ago #95593

Hi,

Please replace

if(isset($this->row->product_msrp) && @$this->row->product_msrp != '0' && JRequest::getCmd('layout') == 'show'){ ?>
By
if(!empty($this->row->product_msrp) && $this->row->product_msrp > 0.0 && JRequest::getCmd('layout') == 'show'){ ?>
In the view "product listing_price".
And same thing for the line (a little below in the file)
if(isset($this->row->product_msrp) && @$this->row->product_msrp != '0' && JRequest::getCmd('layout') == 'show')
By
if(!empty($this->row->product_msrp) && $this->row->product_msrp > 0.0 && JRequest::getCmd('layout') == 'show')
Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.
The following user(s) said Thank You: djundi

Please Log in or Create an account to join the conversation.

  • Posts: 45
  • Thank you received: 1
11 years 8 months ago #95811

Perfect ! Thanks :)

Please Log in or Create an account to join the conversation.

  • Posts: 36
  • Thank you received: 0
9 years 8 months ago #194234

1. Do you know how to cross the letters and price for common price and the price?

example:
common price
50 $USD


Our Price
30 $USD

2. And if also possible to change the language label for it. Instead of Common Prince and Our Price for the Spanish Translation.

Precio en otras webs
50 $USD


Nuestro Precio
30 $USD

From today I am learning php for you. Thank you

Please Log in or Create an account to join the conversation.

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
9 years 8 months ago #194316

Hi,

1. You can do that with CSS:
www.hikashop.com/support/support/documen...ize-the-display.html
.hikashop_product_msrp_price .hikashop_product_price{ text-decoration: line-through; }

2. You can change the text as explained here:
hikashop.com/download/languages.html#modify

Note that these do not require any PHP.

Please Log in or Create an account to join the conversation.

Time to create page: 0.071 seconds
Powered by Kunena Forum