- Posts: 25
- Thank you received: 0
Cart shows options above the product
13 years 2 months ago #113372
by aleks59
Cart shows options above the product was created 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
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.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 2 months ago #113375
by Mohamed Thelji
Replied by Mohamed Thelji on topic Cart shows options above the product
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
.
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.
13 years 2 months ago #113384
by aleks59
Replied by aleks59 on topic Cart shows options above the product
Please Log in or Create an account to join the conversation.
Less
More
- Posts: 12953
- Thank you received: 1778
13 years 2 months ago #113398
by Mohamed Thelji
Replied by Mohamed Thelji on topic Cart shows options above the product
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 :
after these lines :
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
}
}
Code:
<div id="hikashop_product_bottom_part" class="hikashop_product_bottom_part">
<?php
Please Log in or Create an account to join the conversation.
13 years 2 months ago #113407
by aleks59
Replied by aleks59 on topic Cart shows options above the product
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).
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.
13 years 2 months ago #113533
by Xavier
Replied by Xavier on topic Cart shows options above the product
Hi,
You can revert the order of the elements thanks to the code:
To put before:
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.
You can revert the order of the elements thanks to the code:
Code:
$this->rows = array_reverse((array)$this->rows);
Code:
foreach($this->rows as $i => $row){
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