Search found 10 matches

Page 1 of 1

Search found 10 matches

How To Change Sort Order of Related Products on Product.tpl?

I would like to change the sort order of specific products based on the product page the user is currently on. The default sort order is fine for category pages, but I need certain products to move up depending on the product that is being viewed. Is there a way to do this on product.tpl? I'm workin...

Jump to post
  • Fri Mar 30, 2012 1:15 am
  • Replies 0
  • Views 281
Re: Echo Custom HTML Based on Product ID

So this is a PHP method for parsing the link, I see that. But is there an online reference somewhere for this method? And is this only good for elements with an equals sign? How would this work with a pretty link? Suppose I wanted to parse the category (after /spaces/, in this example "video", how w...

Jump to post
  • Mon Mar 26, 2012 12:23 am
  • Replies 3
  • Views 829
Re: Echo Custom HTML Based on Product ID

Ok, I mucked around with the code for a little bit and found the following to work. Can someone explain this code to me? Are the "path" in $this->request->get['path'] and "product_id" in $this->request->get['product_id'] fields in the database entry for the product? Is there an online reference for ...

Jump to post
  • Sun Mar 25, 2012 12:43 pm
  • Replies 3
  • Views 829
Echo Custom HTML Based on Product ID

How do I display custom html based on the product_id of a product on product.tpl? I am using the following code picked up here on the forums to do the same for categories. How can I include product ID to this code? This method uses explode for subcategories, how do I find the product id in the path?...

Jump to post
  • Sun Mar 25, 2012 12:13 pm
  • Replies 3
  • Views 829
How Do I Add Descriptions to Related Tab in product.tpl?

I would like to add the description for each product found in the related tab on the product page (product.tpl). How do I do this? I attempted to add the following to line 327 in product.tpl inside the tab-related div for each product loop : <?php if ($product['description']) { ?> <div class="descri...

Jump to post
  • Thu Mar 08, 2012 6:27 am
  • Replies 3
  • Views 3411
Re: [vQmod] Fix ckeditor <p> tag problem

Where do you place this xml? In vqmod/xml/ ?

Jump to post
  • Fri Feb 17, 2012 2:05 pm
  • Replies 15
  • Views 4974
How do I turn off auto formatting in the editor?

The auto formatting in the products editor is unpredictable and doesn't really work. How do I turn it off?

Jump to post
  • Fri Feb 17, 2012 8:14 am
  • Replies 1
  • Views 186
Re: How Do I Count Number of Items in a Category Listing?

I found a solution to the problem. I just made a new variable called $productcount and then an if statement. Here is the code. I placed this inside the script, right before $.cookie('display', 'grid'); on /template/product/category.tpl <?php $productcount = count($products); if ($productcount >= 5) ...

Jump to post
  • Wed Jan 04, 2012 8:13 am
  • Replies 2
  • Views 528
How Do I Count Number of Items in a Category Listing?

I've altered the css for the display-grid class in template/product/category.tpl to display the grid differently, but now I have a bug where the #content div doesn't expand vertically when the category grid lists more than I row of items. I would like to write some php that counts the number of item...

Jump to post
  • Wed Jan 04, 2012 7:12 am
  • Replies 2
  • Views 528

Page 1 of 1

Search found 10 matches