Jump to content



Latest News: (loading..)

- - - - -

Request Product Reviews


  • Please log in to reply
203 replies to this topic

#201   EchoGuns

EchoGuns

    Supreme Overlord

  • Members
  • 122 posts
  • Real Name:Clint Freeman
  • Gender:Male
  • Location:Texas

Posted 07 August 2012 - 05:23 AM

The way I have certain specifications set up, an item can have several values for the same specification name. The code I just showed currently shows like this:
<p><strong>Spec Name 1</strong></p>
<ul class=specification_box>
<li> Spec1 Value 1</li>
</ul>
<p><strong>Spec Name 1</strong></p>
<ul class=specification_box>
<li> Spec1 Value 2</li>
</ul>
<p><strong>Spec Name 2</strong></p>
<ul class=specification_box>
<li> Spec2 Value 1 </li>
</ul>
<p><strong>Spec Name 2</strong></p>
<ul class=specification_box>
<li> Spec2 Value 2 </li>
</ul>

Im trying to get it to show the name of the specification once for all the values under that specification name.
My Addons:

Product Tabs - 2.3x Download| Support
Product Info Page Box - 2.3x Download | Support

#202 ONLINE   kymation

kymation

    Believers

  • Community Sponsor
  • 6,690 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 07 August 2012 - 05:35 AM

Now I see what's happening. You have multiple values assigned to a specification for each product. The code in products_specifications.php doesn't handle that correctly. It's going to be necessary to split the SQL into two parts: One to get the name, and the second to loop through and get all of the values. This is going to take a bit of work. Unfortunately I don't have a lot of time to work on this right now. I'll see what I can do in a day or two.

Regards
Jim
My Addons

Banners Box 2.3.x  Support
Categories Accordion Box 2.3.x  Support
Categories Images Box 2.2x  2.3.x  Support
Closest Shipper 2.2x  Support
Document Manager 2.2x  Support
Generic Box 2.3.x  Support
Get 1 Free 2.2x  Support
jQuery Banner Rotator 2.2x  2.3.x  Support
Modular Front Page 2.3.x  Support
Modular SEO Header Tags 2.3.x  Support
MVS 2.2x  Support
PDF Datasheet 2.3.x  Support
Price Updater 2.2x
Products Specifications 2.2x  2.3.x  Development Version  Support  Bugs/Suggestions
Request a Review 2.2x - 2.3.x  Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x  Support

#203   EchoGuns

EchoGuns

    Supreme Overlord

  • Members
  • 122 posts
  • Real Name:Clint Freeman
  • Gender:Male
  • Location:Texas

Posted 07 August 2012 - 05:38 AM

Oh, even more complicated than I had thought. Well time is not an issue with me as Im still far from being live. If you get time to look at it I would appreciate it but don't make it a priority.

Thanks!
My Addons:

Product Tabs - 2.3x Download| Support
Product Info Page Box - 2.3x Download | Support

#204   Gazonice

Gazonice
  • Members
  • 92 posts
  • Real Name:Garry
  • Gender:Male
  • Location:Bradford, UK

Posted 09 October 2012 - 10:30 AM

Another potential fix for blank emails when the script is run by a CRON Job is to change the line:

$text_file = basename ($PHP_SELF, ".php") . '.tpl';

to:

$text_file = 'review_mail.tpl';

Assuming the template file resides in the same folder as the script and the filename has not been changed.

This fixed my problem completely.

Garry.
Garry