Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Dynamic text in Product Description?

Dynamic text in Product Description?

Locked

Views: 2,473

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
31 Mar 2008, 3:45 PM
#1
gabstero avatar

gabstero

Zen Follower

Join Date:
Nov 2007
Posts:
342
Plugin Contributions:
0

Dynamic text in Product Description?

Hi Gang!

I have a variable text I'd like to display in certain products description such as:

"Current manufacturing time: 3-4 weeks"

Is there a php trick I could do so that I do that only once but is displayed on all the products I would like? Maybe with a simple php echo somehow?

thanks,
gabstero

31 Mar 2008, 4:05 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Dynamic text in Product Description?

Is there a php trick I could do so that I do that only once but is displayed on all the products I would like? Maybe with a simple php echo somehow?
Where will the decision as to if to display or not be made? Most anything can be coded but one needs to decide if this is harder than adding manually

31 Mar 2008, 4:15 PM
#3
gabstero avatar

gabstero

Zen Follower

Join Date:
Nov 2007
Posts:
342
Plugin Contributions:
0

Re: Dynamic text in Product Description?

kobra:

Where will the decision as to if to display or not be made? Most anything can be coded but one needs to decide if this is harder than adding manually

Thanks Kobra!

I basically need it to be displayed only on say about 20 products description body.
The thing is that the dynamic text (my case is the manufacturing time) changes from week to week, so it can become a drag to update those descriptions on all of those 20 pages.
I was thinking I could maybe have some sort of dynamic php piece of code (echo maybe) in the place of that message I want displayed, but tweaking that from maybe a database field, or a separate form maybe?

Is there maybe a module that already does that but I am un-aware of?

thanks!
gabstero

31 Mar 2008, 4:37 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Dynamic text in Product Description?

As far as I am aware of - this area is html only so php is not parsed if entered You may find some html to do this???