Put Items On Sale

  • Posts: 51
  • Thank you received: 0
9 years 4 months ago #219575

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.5

How do I put ONE item on sale.

The item is $29.99. I want it to show something like this:

29.99 | $15.00 (SALE)

I know I can just change the price but I want customers to know that the item is on sale.

I know I can use a badge but because the products discounts are different for each item I assume I would have to use a badge for each item discount?

Thank you!

Last edit: 9 years 4 months ago by thewebsi.

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

  • Posts: 26205
  • Thank you received: 4032
  • MODERATOR
9 years 4 months ago #219578

Hi,

You can use a discount and display "both prices" in the product listing and in the product page.
After that, thanks to a translation override you can change the text before/after each price (discounted and non discounted).

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: Displey

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

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
4 years 6 months ago #323195

Jerome,
What entry needs to be made in the Language File to indicate "Sale Price" instead of "Our Price" for only the items that are discounted?

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

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
4 years 6 months ago #323206

hi,

You can user either PRICE_DISCOUNT_START or PRICE_DISCOUNT_END to add text before or after the discounted price

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

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
4 years 6 months ago #323223

Hi, Tried using PRICE_DISCOUNT_END but it put a line through the text I was inserting "Sales Price". See attachment
A line through the regular price is great, but it should stop there and not line out the text "Sales Price" and not show up before the regular price as well.
Thoughts?

Attachments:
Last edit: 4 years 6 months ago by a2zcs.

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

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
4 years 6 months ago #323225

Hi,

Well, in that case, you can add a class and a bit of CSS to remove the line on your text:

PRICE_DISCOUNT_END="<span class='my_class'>Sale price: </span>"
.my_class{text-decoration: none !important;}
www.hikashop.com/support/documentation/1...ize-the-display.html

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

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
4 years 6 months ago #323262

Thanks, we are getting closer.
How do I remove "Our Price" just for the items that are discounted and line out the Original Price amount?

Attachments:

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

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
4 years 6 months ago #323263

Hi,

In that case, you'll want to edit the file product / listing_price.php via the menu Display>views and change the line:

if(!empty($show_msrp)) {
to:
if(!empty($show_msrp) && empty($this->row->discount)) {

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

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
4 years 6 months ago #323338

Sorry I probably wasn't being clear. I've attached an image of how the site owner wants it to look. But only for the items with a discount
Thanks

Attachments:

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

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
4 years 6 months ago #323360

Hi,

Then why have the "retail price" filled in at all ? If you don't fill it and change the discounted price display option of the HikaShop configuration to display the price before the discount instead of the discount amount itself, you should get the result you want without any modification necessary.

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

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
4 years 6 months ago #323361

Perhaps, but now the words "Sale Price" are crossed out as well. How to show them as NOT crossed out?



I did some playing around and found that if I included another</span>at the beginning of the "Price_discount_end" code you gave me earlier. It removes the line from the text, but now I've got a "<br> splitting it up on to two lines.
PRICE_DISCOUNT_END="</span><span class='sale_price'><br> Sale Price: </span>"
How or where can I remove that line break?

Attachments:
Last edit: 4 years 6 months ago by a2zcs.

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

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
4 years 6 months ago #323366

Hi,

The problem is that your translation override is not correct and that's why it displays like that.
Try instead:
PRICE_DISCOUNT_END="<br/><span class='sale_price'>Sale Price: </span>"

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

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
4 years 6 months ago #323372

Making that change puts us back to where we were before with the "Sales Price" crossed out

Attachments:

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

  • Posts: 26
  • Thank you received: 3
  • Hikashop Business
4 years 6 months ago #323375

I usually fix things like that in CSS.
Add the rpoper lines at the end of file: "/media/com_hikashop/style_default.css"

Press F12 in your browser and play with the css code until you've got it right, then copy it into the css file.
You'll probably need something like:

.salse_price {text-decoration:none}

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

  • Posts: 83407
  • Thank you received: 13502
  • MODERATOR
4 years 6 months ago #323384

Hi,

That's probably a CSS code priority issue.
Try to use that CSS instead to force it:
.salse_price {text-decoration:none !important;}

Now I would need a link to the page to check the CSS on the element with my browser inspector to be able to say for sure what should be done.

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

  • Posts: 268
  • Thank you received: 7
  • Hikamarket Frontedition Hikamarket Multivendor Hikaserial Standard Hikashop Business
4 years 6 months ago #323400

I already have that css in place .sale_price{text-decoration:none !important;}
However I believe that the Price_Discount_End is being inserted in the wrong spot. Shouldn't it go after the closing </span> tag for hikashop_product_price_before_discount?



Ok, got it to work with the following:

Attachments:
Last edit: 4 years 6 months ago by a2zcs.

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

Time to create page: 0.138 seconds
Powered by Kunena Forum