Products dispaly modification

Professional Joomla restaurant template comes with a custom animated modules and advanced typography elements.
GK User
Sun Nov 04, 2012 7:00 pm
Hello everybody, i have a question for you. In restaurant template, when i see a product detail i see the price AFTER the "rate this item" and user detail image fields, as shown in image 1...
I require if it's possible to show the price just after product description, BEFORE the "rate this item" and other fields, as in image 2.
Thanks to anyone can help me.
Max
image 1:
before_modifications.png


image 2:
after-modifications.png
User avatar
Junior Boarder

GK User
Mon Nov 05, 2012 12:13 am
Hi

Yes it's possible, but before we need to update K2 Store theme files.
Let me check what need to be updated and i get back to you and this issue.
User avatar
Platinum Boarder

GK User
Mon Nov 05, 2012 4:44 pm
Thank you Seichinha, waiting for your reply for solution.
User avatar
Junior Boarder

GK User
Fri Nov 16, 2012 2:44 am
Hi again

ok so follow my instructions:

1) Backup your website.

2) Be sure that you have the latest K2 Store component installed. The present version is 2.6.1.

3) Download attach file, decompress and replace the following files on ../gk_restaurant/:

k2_store_2.6.1_update_restaurant.zip


../gk_restaurant/css/k2.css
../gk_restaurant/css/style1.css
../gk_restaurant/css/style2.css
../gk_restaurant/css/style3.css
../gk_restaurant/css/css_noprefix/k2.css
../gk_restaurant/css/css_noprefix/style1.css
../gk_restaurant/css/css_noprefix/style2.css
../gk_restaurant/css/css_noprefix/style3.css

4) Remove all files on ../gk_restaurant/html/com_k2store/ except the index.html file.

Them add the new ones:

../gk_restaurant/html/com_k2store/checkout/cartsummary.php
../gk_restaurant/html/com_k2store/checkout/default.php
../gk_restaurant/html/com_k2store/checkout/form.php
../gk_restaurant/html/com_k2store/mycart/addtocart.php
../gk_restaurant/html/com_k2store/mycart/ajax.php
../gk_restaurant/html/com_k2store/mycart/default.php
../gk_restaurant/html/com_k2store/orders/print.php

5) Go to template parameters > Fonts and add the following font selectors on Headers - selectors:

.k2store_login_box legend,
.k2store_register_box legend

6) Open the following file ../gk_restaurant/html/com_k2/templates/default/item.php and remove this fragment:

Code: Select all
<?php echo $this->item->event->AfterDisplay; ?>
<?php echo $this->item->event->K2AfterDisplay; ?>


Them replace this fragment:

Code: Select all
<?php if($params->get('itemFullText')): ?>
      <div class="itemFullText">
     <?php echo (!empty($this->item->fulltext)) ? $this->item->fulltext : $this->item->introtext; ?>
      </div>
<?php endif; ?>


with

Code: Select all
<?php if($params->get('itemFullText')): ?>
      <div class="itemFullText">
     <?php echo (!empty($this->item->fulltext)) ? $this->item->fulltext : $this->item->introtext; ?>
      </div>
<?php endif; ?>
<?php echo $this->item->event->AfterDisplay; ?>
<?php echo $this->item->event->K2AfterDisplay; ?>


Let me know if look fine
User avatar
Platinum Boarder

GK User
Fri Nov 16, 2012 10:02 am
Well done, it's perfect!!!!
Thanks a lot for your help
User avatar
Junior Boarder


cron