Skip to main content

Cart shows options above the product

More
13 years 2 months ago #113372 by aleks59
Hello everybody!
In my hikashop the cart shows selected options above the product. I would like to have them below the product. How can i change this ordering?
Many thanks in advance,

Aleks

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

More
13 years 2 months ago #113375 by Mohamed Thelji
Hi Aleks,

Can you show me screenshots of the problem that you are having and of what you really want to do ?
Giving me a link to this page will also help to understand and to find a solution for your problem.

Thanks :).

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

More
13 years 2 months ago #113384 by aleks59
Here is the screenshot.
'Versand' and 'Mit Einbau' are the options of the 'DAF 1 Filter' Product. The are displayed above the product in the cart. i want them to be placed below the product.

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

More
13 years 2 months ago #113398 by Mohamed Thelji
Ok,

I think that the solution will be to :
- Go to "Hikashop->Display->Views"
- Edit the "show_default" file of the "product" view of your front-end template
- Move these lines :
Code:
if (hikashop_level(1) && !empty ($this->element->options)) { ?> <div id="hikashop_product_options" class="hikashop_product_options"> <?php //LAYOUT option $this->setLayout('option'); echo $this->loadTemplate(); ?> </div> <br /> <?php $form = ',\'hikashop_product_form\''; if ($this->config->get('redirect_url_after_add_cart', 'stay_if_cart') == 'ask_user') { ?> <input type="hidden" name="popup" value="1"/> <?php } }
after these lines :
Code:
<div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part"> <?php

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

More
13 years 2 months ago #113407 by aleks59
Sorry, i wasn't quite clear describing my problem. I mean the way the product and the options are being displayed in the CART itself. Look an the left.
In the CART "Versand" and "Mit Einbau" (which are the product options) are above the "DAF 1 Filter" (that is the product).
I wanted it the other way around: product above the options (in the CART MOdULE).

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

More
13 years 2 months ago #113533 by Xavier
Hi,

You can revert the order of the elements thanks to the code:
Code:
$this->rows = array_reverse((array)$this->rows);
To put before:
Code:
foreach($this->rows as $i => $row){
in the view "product / cart".

This will inverse the order of the elements.
If you need a specific order, it will require custom code to order depending on the options, and require php knowledge.

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

Time to create page: 0.200 seconds
Powered by Kunena Forum