variants on product listing page

  • Posts: 9
  • Thank you received: 1
11 years 4 months ago #116012

Hi,

1 ) I am facing a problem in displaying the product variants on the product listing page....i have around 1-2 variants for some of the products with different prices and size.....on the product listing page it give the option for "choose option" insted of which i want the drop down to select the size of that product and the price to change accordingly....and want the add to cart option.

2 ) I want to display the discount given on the product to be displayed on the product listing page.

3) I want to customize my product page with the image on the left and a proper table with the MRP, brand, size, discount.

Please help me with these 3 problem.... I am also attaching the image for the product as i want it to display on the product listing page and an image for the product page.

please help me ASAP...






Attachments:
Last edit: 11 years 4 months ago by rahulmalik17.

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #116014

Hi,

1. It's not possible. Variants are not loaded for each product in the listings. That would require too much resources and the process on the listings would crash because of the restrictions on your server. That's why we don't display an add to cart button but a choose option button for products with variants on listings.

2. You can change the way the prices are displayed (with or without discount) with the option "show discounted prices" of your products listing menu/module that you can edit via the menu Display->Content menus/modules.

3. You can do that by editing the file "show_default" via the menu Display->Views and rearrange the HTML to display the elements in a table instead of divs.

The following user(s) said Thank You: rahulmalik17

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

  • Posts: 9
  • Thank you received: 1
11 years 4 months ago #116019

i have only some products with 1-2 variants...varying on their size....i have seen on all the sites that the variants are displayed on the product listing page and i also went through the recent posts on the same topic....

please provide me some alternative so that i could display a drop down for the size on the product listing page.....i would realy appreciate... :)

on some of the previous posts of i found an ans saying





please help me with this i realy want the variants to be displayed on the listing page.

Attachments:

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #116026

Hi,

I don't know where you found that code but that code won't allow you to display characteristic dropdowns on products listings.
I created HikaShop, so if I say that it's not possible, it's not possible.
You can display custom item dropdown fields on listings, but they can't change the product price so if you want to change the product price based on the dropdown selection, there is no solution to do that on listings.

The following user(s) said Thank You: rahulmalik17

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

  • Posts: 9
  • Thank you received: 1
11 years 4 months ago #116037

Ok thanks!

about the product page, I added table tag with tr and td and It's arranged now but hikashop social module is not working any more. :(





About Discounts, in "show discounted prices" there is an option to show discount amount or show price before discount.
What I really want is to show both.
=> (Crossed off) price without discount then the price after discount and then the amount you save ie discount amount

Is that possible? can I do this by adding a line or two in view?
If yes then please tell me what lines I'm supposed to add and where.

Thanks Again :)

Attachments:

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

  • Posts: 83024
  • Thank you received: 13403
  • MODERATOR
11 years 4 months ago #116108

1. There is no link between both. It can sometimes happen due to caching. Can you make sure that you turn off and flush your website cache and try again ?

2. If you want to show both, you need to edit the file "listing_price" of the view "product" via the menu Display>Views. There you can just change:
if($this->params->get('show_discount')==1){

to:
if(true){

and:
}elseif($this->params->get('show_discount')==2){

to:
}
if(true){

The following user(s) said Thank You: rahulmalik17

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

  • Posts: 9
  • Thank you received: 1
11 years 4 months ago #116190

That worked like a charm...Thanks! :)

The social module is still not working though it's still working on product pages that have variants...I don't know how that's possible but that's how it is :P

Another quick question-

How can I remove link to brand page in product page and just display brand name instead?

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

  • Posts: 12953
  • Thank you received: 1778
11 years 4 months ago #116223

Hi,

If you want to disable your brand link, you should probably just apply some CSS properties like this :

pointer-events: none;
cursor: default;

Last edit: 11 years 4 months ago by Mohamed Thelji.

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

  • Posts: 9
  • Thank you received: 1
11 years 4 months ago #116333

When I add this css to template file, no other link works and when I add it to product right part in hikashop css, the add to cart button also won't work.....so where exactly am I supposed to add It?

The following user(s) said Thank You: Eliot

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

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

Hi there,

You have to right click on the brand in your product page and use the "inspect element" feature of your browser.
You will then be able to see a specific class or id that you can use for your css property. It will give something like:

.yourclass{
pointer-events: none;
cursor: default;
}

About the social buttons, could you please give us a plink to your website? Are you sure you didn't modified any code containing the {hikashop_social} tag, in your view for example?

The following user(s) said Thank You: rahulmalik17

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

  • Posts: 9
  • Thank you received: 1
11 years 4 months ago #116381

It's on a local server !

The problem is with something I did to the view file...I'm attaching it.

When I remove the customization it works fine but when I add it, It doesn't work

Attachments:

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

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

Looking at the file like this isn't really convenient for us to find the issue.
Plus since it's a customization you made, we are not really responsible of this problem.

Anyway, I would suggest you to do a ctrl+u when you are on the page where social button don't display. Then, use ctrl+f to see if you can spot something containing "facebook", "twitter", "fb" or "social".
maybe the buttons are still there but they are hidden because you forgot to close a <div> tag. If you can't find anything this way, what you can do is using the orginal view, copy pasting your modifications one by one and refresh at each modification to see if it broke the social module.

I hope you will find the solution :).

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

Time to create page: 0.114 seconds
Powered by Kunena Forum