Post by Sphelps1984 » Fri Dec 18, 2009 9:42 am

I have this theme and having problems displaying products
here take a look
http://www.destinycomputing.com

Newbie

Posts

Joined
Fri Dec 18, 2009 9:40 am

Post by Yakiv » Fri Dec 18, 2009 9:53 am

Nice theme. Where did you get it or how did you go about putting it together?

...It appears that there is some kind of "Undefined variable" in your template.

Active Member

Posts

Joined
Tue Dec 15, 2009 5:31 pm

Post by Sphelps1984 » Fri Dec 18, 2009 9:57 am

hard to do to get it to work right and still working on it the
Currencies and Languages and shopping cart are not working yet

Newbie

Posts

Joined
Fri Dec 18, 2009 9:40 am

Post by moggiex » Fri Dec 18, 2009 3:57 pm

Thats got the makings of a very neat site, greena nd grey, nice combo!

You might want to see http://forum.opencart.com/viewtopic.php ... =+home.php to get categories on the homepage also. That error looks like you've killed the second for statement when spilling the products out.

I'm wondering if you could get the 'new' corner flags out from a product option, so that they only appear when set, it also means you could add other flags, like the corner flags used in the products in http://www.ghostbikes.com/ (not OpenCart).

You might find this useful to do that:

Code: Select all

<table style="width: 100%;">
							  <?php foreach ($options as $option) { ?>
							  <tr>
									<?php echo $option['name']; ?>:<br />    
									<?php foreach ($option['option_value'] as $option_value) { ?>
									
									ID 		= <?php echo $option_value['option_value_id']; ?> <br />

									name: 	= <?php echo $option_value['name']; ?> <br />
									
									<?php 
										if (strcmp($option['name'], "FlagName1") == 0) 
										{ 
											echo "This is FlagName1 ".$option_value['name'];
										} 
										if (strcmp($option['name'], "FlagName2") == 0) 
										{ 
											echo "This is FlagName2: ".$option_value['name'];
										} 
									?>
									<br /><hr /><br />
									
									<?php } ?>
							  </tr>
							  <?php } ?>
							</table>
You'd obviously add the options code to the home.php file, it should almost be a straight copy/paste from the products.php controller file.

Matt

Code: Select all

It was like that when I found it, honest!


User avatar
Active Member

Posts

Joined
Mon Nov 09, 2009 9:55 pm

Post by Sphelps1984 » Fri Dec 18, 2009 8:14 pm

the way I have it set each on of the blocks will be a product on the front page up to 6 new random products.
another problem I am having is when you click on a Category the info does not display in the right spot yet

Newbie

Posts

Joined
Fri Dec 18, 2009 9:40 am

Post by huhitschris » Sun Dec 20, 2009 12:14 pm

You have a problem on line 74 of your home.tpl file, php doesnt recognize "j in" as anything. Please copy and paste part of your home.tpl file around line 74 so we can see what is going on in your code.

PM me for custom OpenCart template design and development.


New member

Posts

Joined
Wed Aug 19, 2009 3:12 pm
Who is online

Users browsing this forum: No registered users and 0 guests