Cart shows options above the product

  • Posts: 25
  • Thank you received: 0
11 years 3 months ago #113372

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.

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #113375

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.

  • Posts: 25
  • Thank you received: 0
11 years 3 months ago #113384

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.

Attachments:

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

  • Posts: 12953
  • Thank you received: 1778
11 years 3 months ago #113398

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 :

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 :
<div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part">
  <?php

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

  • Posts: 25
  • Thank you received: 0
11 years 3 months ago #113407

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.

  • Posts: 13201
  • Thank you received: 2322
11 years 3 months ago #113533

Hi,

You can revert the order of the elements thanks to the code:

$this->rows = array_reverse((array)$this->rows);
To put before:
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.086 seconds
Powered by Kunena Forum