Display 3 prices

  • Posts: 223
  • Thank you received: 1
11 years 4 months ago #110792

I would like to display pricing for an item as in this example:




Can this be done?

Thanks...

Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #110834

Hi,

Yes, this can be done.
You can use the msrp fiel in your product page for the "original price", then the sale price will be the normal price of your product, and you can add a custom field in the table "product" to add the "List price".
Then edit the view "product / listing_price" and add the display of the added custom field and you can customize the layout as you want.

www.hikashop.com/fr/support/documentatio...ize-the-display.html

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

  • Posts: 223
  • Thank you received: 1
11 years 4 months ago #110892

having trouble finding the right lines of code to move---


Attachments:

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #110995

Hi,

You have to display the price by adding some code, like: echo $this->element->custom_field_name;
And add a css property to hide the already displayed "List price" in the specifications listing

www.hikashop.com/fr/support/documentatio...ize-the-display.html

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

  • Posts: 223
  • Thank you received: 1
11 years 4 months ago #111074

wouldn't this need some php code as well?

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

  • Posts: 2334
  • Thank you received: 403
11 years 4 months ago #111077

You should read what Xavier says again, he told about php code ;).

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

  • Posts: 223
  • Thank you received: 1
11 years 4 months ago #111089

i did read what he said...add "echo $this->element->custom_field_name;" and what shows up is that line "echo $this->element->custom_field_name;"...does it not need to be wrapped in some php?

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

  • Posts: 13201
  • Thank you received: 2322
11 years 4 months ago #111107

Yes it need to be wrapped into php,

<?php echo $this->element->custom_field_name; ?>

You have to place it where you need, and replace "custom_field_name" by the name of the custom field you created.

The following user(s) said Thank You: plumbingdeals

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

  • Posts: 223
  • Thank you received: 1
11 years 4 months ago #111135

yes, that was the key...

still needs a bit of tweaking, but it works...

see result here...

www.plumbingdeals.dreamhosters.com/index...exposed-flushometers

thank you!

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

Time to create page: 0.097 seconds
Powered by Kunena Forum