Listing products

  • Posts: 7
  • Thank you received: 0
13 years 7 months ago #13514

Hi again ,
Very cool features in new version!!

How I can list my products in table and have product name , product description and add to cart all in the same row like this:
name description price
-Tomatos 1kg fresh tomatos 2€ add to cart button

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13543

Hi,

The description is not displayable by default in that layout.
You need to edit the file listing_table of the view product via the menu Display->Views and add :
<th class="hikashop_product_description title" align="center">
Description
</th>
before:
<?php if($this->params->get('add_to_cart')){ $columns++; ?>
<th class="hikashop_product_add_to_cart title" align="center">
</th>
<?php } ?>


and:
<td class="hikashop_product_description_row">
<span class="hikashop_product_description">
<?php echo $this->row->product_description; ?>
</span>
</td>

before:
<?php if($this->params->get('show_price')){ ?>
<td class="hikashop_product_price_row">
<?php
$this->setLayout('listing_price');
echo $this->loadTemplate();
?>
</td>
<?php } ?>

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

  • Posts: 7
  • Thank you received: 0
13 years 7 months ago #13594

Hi Nicolas ,
Thank you for the quick reply
You support is for 10 stars ;)

I did all the changes you told me but i still don't have the resault .

You can see what i mean to this link . By the way they will look like Greek to you because is Greek :laugh:

I dont get the description and the add to cart button .

For some reason it still displays the picture-product name-and price but not discription and add to cart button.

Is it something i miss in to the config?

Last edit: 13 years 7 months ago by Nikos.

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13614

If you don't see the modification, that's probably because you didn't edit the good file. If you have several templates on your website, you will have several times the file so you need to edit the file corresponding to your template.

For the add to cart button, you need to activate that option in the options of your products listing module. For that, you need to go in the menu Display->Content modules and edit your module.

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

  • Posts: 7
  • Thank you received: 0
13 years 7 months ago #13675

Thank you Nicolas you rock ,

This baby (hikashop) is the best out there with your precius support!!

One more thing In case i dont want to show thumps to the table but show to categories what shall i do?
Just remove the php lines on listing_table.php ?

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13676

Yes, you will have to edit the file listing_table of the view product via the menu Display->Views (you should do it via the interface so that you don't loose your modifications when you update).

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

  • Posts: 7
  • Thank you received: 0
13 years 7 months ago #13677

Thanks again!!

Next thing to do buy hikashop for next projects..it worth every cent B)

cheers

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

  • Posts: 7
  • Thank you received: 0
13 years 7 months ago #13680

Nicolas ,

Iam wathing the resault and it sure missing a filter by product,price witch costumer change for his needs..just a future request!

anyway thank you again!! ;)

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

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13688

Yes. It's already in the todo list.

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

Time to create page: 0.133 seconds
Powered by Kunena Forum