Jump to content

[SOLVED] How to switch product price block with product decsription block?


Recommended Posts

I tried to do this the global.CSS file thinking I could just put the Buy Block before the Short Description but it did not change anything. I can't figure out how to change this around so the price block is first, then the product short description (left column). Has anyone done this before?

23385_VzzufpFOpwlGkuWdzQys_t

Link to comment
Share on other sites

You need to edit product.tpl in your theme's directory and move the following code on lines 141-159 down to line 288 (after the </form>):

{if $product->description_short OR $packItems|@count > 0}

   {if $product->description_short}
{$product->description_short}
   {/if}
   {if $product->description}

<a href="[removed]{ldelim}{rdelim}" class="button">{l s='More details'}
   {/if}
   {if $packItems|@count > 0}
{l s='Pack content'}
       {foreach from=$packItems item=packItem}

               {$packItem.pack_quantity} x <a href="{$link->getProductLink($packItem.id_product, $packItem.link_rewrite, $packItem.category)}">{$packItem.name|escape:'htmlall':'UTF-8'}

{$packItem.description_short}

       {/foreach}
   {/if}

{/if}

Link to comment
Share on other sites

Hey Rocky, that worked great! Thank you....
I would still like to keep the pixel or two space between the two blocks, when i changed them around they are now touching. Do i need to put a space in somewhere?

Link to comment
Share on other sites

I forgot about that. Now that you've switched the blocks around, you need to switch the padding around too. In global.css, move the "margin-bottom: 1.5em" from "#primary_block #short_description_block" down to the "#primary_block form#buy_block".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...