- Posts: 7
- Thank you received: 0
Listing products
15 years 5 months ago #13514
by Nikos
Listing products was created by Nikos
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
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.
15 years 5 months ago #13543
by nicolas
Replied by nicolas on topic Re: Listing products
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 } ?>
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.
15 years 5 months ago - 15 years 5 months ago #13594
by Nikos
Replied by Nikos on topic Re: Listing products
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?
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: 15 years 5 months ago by Nikos.
Please Log in or Create an account to join the conversation.
15 years 5 months ago #13614
by nicolas
Replied by nicolas on topic Re: Listing products
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.
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.
15 years 5 months ago #13675
by Nikos
Replied by Nikos on topic Re: Listing products
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 ?
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.
15 years 5 months ago #13676
by nicolas
Replied by nicolas on topic Re: Listing products
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.
15 years 5 months ago #13677
by Nikos
Replied by Nikos on topic Re: Listing products
Thanks again!!
Next thing to do buy hikashop for next projects..it worth every cent
cheers
Next thing to do buy hikashop for next projects..it worth every cent
cheers
Please Log in or Create an account to join the conversation.
15 years 5 months ago #13680
by Nikos
Replied by Nikos on topic Re: Listing products
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!!
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.
15 years 5 months ago #13688
by nicolas
Replied by nicolas on topic Re: Listing products
Yes. It's already in the todo list.
Please Log in or Create an account to join the conversation.
Time to create page: 0.348 seconds