Forums / Templates, Stylesheets, Page Layout / Did i modify the code correctly? Move the attribute near to near the add to cart.

Did i modify the code correctly? Move the attribute near to near the add to cart.

Started by ihatebusy on 19 Jun 2012, 7:05 AM · Views: 704

Results 1 to 3 of 3
19 Jun 2012, 7:05 AM
#1
ihatebusy avatar

ihatebusy

New Zenner

Join Date:
Jun 2012
Posts:
5
Plugin Contributions:
0

Did i modify the code correctly? Move the attribute near to near the add to cart.

Hello i need to move the 'attribute' near to near the 'add to cart', I don't know anything about coding, but after searched a lot of threads here i modified the file: includes\templates\theme423\templates tpl_product_info_display.

Not sure if it has been done correctly- any one can check this for me??
I appreciate any help!!!Thank you

The code been modified:

<!--bof Add to Cart Box -->

<!--eof Add to Cart Box-->

<!--bof Attributes Module -->
<?php
  if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
 * display the product atributes
 */
  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
  }
?>
<!--eof Attributes Module -->

<!--bof Product details list  -->

<!--eof Product details list -->

Modifications have already been done but didn't see any change on the shop page.
The shop page: http://goo.gl/Ta16K

19 Jun 2012, 8:29 PM
#2
ihatebusy avatar

ihatebusy

New Zenner

Join Date:
Jun 2012
Posts:
5
Plugin Contributions:
0

Re: Did i modify the code correctly? Move the attribute near to near the add to cart.

Please help:(

19 Jun 2012, 8:58 PM
#3
keneso avatar

keneso

Totally Zenned

Join Date:
May 2009
Posts:
1,273
Plugin Contributions:
3

Re: Did i modify the code correctly? Move the attribute near to near the add to cart.

It appears you took the code in these blocks

<!--bof Product description -->

<!--eof Product description -->
<br class="clearBoth" />

<!--bof Add to Cart Box -->

<!--eof Add to Cart Box-->

<!--bof Product details list  -->

<!--eof Product details list -->

and moved them, and left the attributes code where it used to be after them

<!--bof Attributes Module -->
<?php
  if ($pr_attr->fields['total'] > 0) {
?>
<?php
/**
 * display the product atributes
 */
  require($template->get_template_dir('/tpl_modules_attributes.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_attributes.php'); ?>
<?php
  }
?>
<!--eof Attributes Module -->

Get yourself a fresh untouched copy of the file, and move the blocks with their bof/eof comments, so you know what is where.