Changing Layout Type

  • Posts: 5
  • Thank you received: 0
13 years 10 months ago #4791

hello!
I have a question about changing Layout type...
for instance HikaShop offers this line of order (product listing template):
Image - Price - Name of the product

i would like to have this kind of order:
Name of the product - Image - Price - Description(?)

so, is it possible to include Description (truncated) in the product listing template or at least to change the order?

if its possible then how to do that?

i was doing some researching and get to this function (that controls the way layout displays itself) div_item_layout_type but further than that i dont know...

for an online example i would like to accomplish this (direct from product listing template) is that possible?
www.kucazelenogcaja.com/trgovina/zeleni-cajevi/

any help would be appreciated
thank you!
:)

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
13 years 10 months ago #4792

Hi,

That's possible. You need to edit the options of the menu/module used to display your listing of products. You can do that via the menu Display->Content menus and Display->Content modules. In the options, you will have the option "item box layout" where you can select "image and description". That will set the option div_item_layout_type that you found in the code.

If you want to truncate the description, you can use the "read more" button of your editor in the description. That should add the HTML <hr id="system-readmore" /> which will be used by HikaShop to truncate the description on the listing of products.

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

  • Posts: 5
  • Thank you received: 0
13 years 10 months ago #4794

yes i tried that too, but still i didn't manage to change the order of the parts... ie. image - mane of the product - price
is it a way to edit function div_item_layout_type and where to do that?
thank you!

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
13 years 10 months ago #4795

The order of the information will have to be changed in the code of the view. You can go in the menu Display->Views to edit the views of hikashop.

If you set the item layout to "image and description", you will want to edit the file listing_img_desc of the view product. There, you should be able to easily invert the code for the name and the price.

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

  • Posts: 5
  • Thank you received: 0
13 years 10 months ago #4796

ok i see..
i will do that...
thank you again... :)

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

  • Posts: 5
  • Thank you received: 0
13 years 10 months ago #4798

one more question please :)

is it somehow possible to put or show Characteristics and or put chart button direct to product listing list?
can you please show how to do that

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
13 years 10 months ago #4799

Adding "add to cart" buttons in the listing of products can be achieve with the corresponding option in the module/menu listing your products.
However, that will add the main product in the cart.

There is no option to display the characteristics selection in the listing of products. The data isn't loaded nor parsed in the listing. If you want to do it you will need to edit the listing files of the product view and add SQL query, parsing of the variant/characteristics data and the code displaying the characteristics selection and the variant display... It's a lot of work and would require to carefully analyze the code we used on the product page.
In your case, and using hikashop, I would rather not have the characteristic selection and just have a quantity field so that the customer can order several times the same 50g product.

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

  • Posts: 5
  • Thank you received: 0
13 years 10 months ago #4871

thank you for your answer...
its a great product and even greater support! :)
cheers

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

  • Posts: 25
  • Thank you received: 0
12 years 5 months ago #54036

I used this and it is great. Now I would like to hide whatever description is above the system-readmore in the product/show.php that way I kind of have customized description for the listing and it does not show again in the product details page. Can you help me with that? thank you

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

  • Posts: 82821
  • Thank you received: 13368
  • MODERATOR
12 years 5 months ago #54109

In that case, you will want to edit the files "show" and "show_default" of the view "product" via the menu Display->Views and change the code:
'#<hr *id="system-readmore" */>#i'

to:
'#.*<hr *id="system-readmore" */>#is'

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

Time to create page: 0.069 seconds
Powered by Kunena Forum