My website is located at http://www.music-saved-my-life.com. Thank you for your time in advance.
But then again looking at the page source you're displaying the products in a table, with only one product per row. I'm new to this OpenCart game, but which version are you running? 0.7.9 uses tags not a table...
Our extensions: Royal Mail Shipping API; Copy Coupon; Checkout Address Formats
Our OpenCart store: Delves Wood Bears
I believe that I am using the newest version. Take a look at the code for the latest products section. It is quite similar for the other section.
Latest Products
Emarosa - Relativity
$13.49
Edison Glass - Burn Or a Shiver
$12.07
Edison Glass - Time Is Fiction
$11.03
Dre Murray - Manumit
$13.93
Copeland - You Are My Sunshine
$13.29
Code: Select all
<div class="products">
<span id="image"><a href="<?php echo $product['href']; ?>"><img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" /></a></span>
<span id="title"><p><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></p></span>
<span id="price"><?php echo $product['price']; ?></span>
</div>
Code: Select all
<tr class="products">
<td style="width:180px; outline:; outline-color: #CCCCCC; padding:5px; " ><a href="<?php echo $product['href']; ?>">
<img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>"
alt="<?php echo $product['name']; ?>" /></a>
<br /><a href="h<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a><br />
<b><?php echo $product['price']; ?></b><br />
</tr>
Have you tried switching to the default template?
Our extensions: Royal Mail Shipping API; Copy Coupon; Checkout Address Formats
Our OpenCart store: Delves Wood Bears
In Admin, from the menu go to Admin | Configuration | Setting.
Under the Shop tab (first one) you should see a template combo box, which should show the name of your template. Change this to default and Save. View your home page, check the source and compare to what you pasted in above.
Of course, set the template back to yours...
I believe the files to check are:
content/home.tpl
css/default.css
in the two templates.
Our extensions: Royal Mail Shipping API; Copy Coupon; Checkout Address Formats
Our OpenCart store: Delves Wood Bears
I have not changed my template away from the default. I have only made small adjustments on the default. Some key diferences that you will notice is the background, which I simply saved this background as a background color and chose it in the menu. I also added buttons on the top. Everything else was placed together by open cart. I never changed any of it.
Tony
Don't suppose you have the copy of OpenCart that you downloaded. You could then rename the default template (which you've changed), copy over the original default template. Then do what I suggested.
Of course it'd be easier if you have a local copy, rather than playing with your live site...
Our extensions: Royal Mail Shipping API; Copy Coupon; Checkout Address Formats
Our OpenCart store: Delves Wood Bears
If you only made small changes to the default, then I would suggest you start fresh with 0.7.9 and make those simple changes again. This time, however, be sure you create a new template but follow the number one rule

Our extensions: Royal Mail Shipping API; Copy Coupon; Checkout Address Formats
Our OpenCart store: Delves Wood Bears
It's just that OpenCart's gone through a bit of an identity crisis since its inception. The framework and layout has changed so much as it progresses that its just a curse to try to support. We are working hard on improving the entire process making it easier to add mods and addons so that when OpenCart updates come out, it is more transparent and doesn't break anything.
The faster we can get people to use the newer versions and set their directories up properly, the happier they will be in the long run as we will then all be on the same design phase.
The latest version of the "Latest/Featured/Specials contrib" was designed for 0.7.9 based on a based structure. I'm not sure what version of opencart is running here, and I don't think it will work with the latest version anyway.
Easier to compare layouts and style etc, if you break something...
The combo in Admin, is sufficient to allow you to easily switch between templates.
The blog I integrate into http://www.pinnacleproshop.co.uk/blog.php from http://b2Evolution.net has it's own tab for skins to allow you to pick the one to use, which is a glorified set of radio buttons with images, so you have a more visual representation of the installed skins.
Our extensions: Royal Mail Shipping API; Copy Coupon; Checkout Address Formats
Our OpenCart store: Delves Wood Bears
ExactlyDWWD wrote: Just makes sense to me, to have the customized template (or skin in other applications) separate from the default.
ExactlyEasier to compare layouts and style etc, if you break something...
ExactlyThe combo in Admin, is sufficient to allow you to easily switch between templates.
How would you suggest I update my program without deleting my current content and having to go through everything for a 3rd time?
Tony
Qphoria did suggest that if you had only made some minor changes to the default then you could just re-apply them to the new version. (which you can do by comparing your original download to your current version. I use Araxis Merge - does have a free month trial, but there may be a free text comparison app).Tony wrote: How would you suggest I update my program without deleting my current content and having to go through everything for a 3rd time?
As previously stated too, the confusion appears that the home.tpl template appears to be using a table and not div tags that the current version uses.
Our extensions: Royal Mail Shipping API; Copy Coupon; Checkout Address Formats
Our OpenCart store: Delves Wood Bears
Most of his page is CSS except the contrib. The original version was tables in the TPL.
Qphoria's update was CSS
Brent
Try it and see:
http://www.opencart.com/index.php?route ... tion_id=84
You just need to modify your template files for the latest/featured/specials to remove the table markup and use a div based markup similar to what follows.
Code: Select all
<div class=products>
<A
href="http://music-saved-my-life.com/index.php?controller=product&product_id=420"><IMG
title="Emarosa - Relativity" alt="Emarosa - Relativity"
src="Music%20Saved%20My%20Life_files/EMA%2520Relativity-100x100.jpg"></A>
<BR><A
href="http://music-saved-my-life.com/index.php?controller=product&product_id=420">Emarosa
- Relativity</A><BR><B>$13.49</B><BR></div>
Cheers
Bruce
Users browsing this forum: No registered users and 5 guests