Search found 200 matches

by seregarem
Thu Mar 15, 2012 11:57 am
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

Could I just change id of a product in Cart module? Is it possible to replace id like: id=id+color_id?
by seregarem
Thu Mar 15, 2012 10:58 am
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

Another problem: if I choose a product with one color and then add just the same product, but with another color, it saved in cart like the one product. ??? Could you tell me, how to differentiate these two items? Does Cart module use id of a product or something else to distinguish products?
by seregarem
Thu Mar 15, 2012 10:29 am
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

It was extremely simple! I just replaced a line

edited by moderator.
by seregarem
Thu Mar 15, 2012 10:08 am
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

I just want, that when a buyer click on a color, in his cart a price of chosen product changes in dependence of the price of the color. As I see, I have to just change a value of a smarty variable - a value of a price of a product. Is it possible?
by seregarem
Thu Mar 15, 2012 8:43 am
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

May be, I should replace CreateInputDropdown function to CreateInputRadioGroup and make some changes in this function?
by seregarem
Thu Mar 15, 2012 8:23 am
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

The problem is that the customer of the site needs radio input. :(
What kind of changes I should make in the module Products or Cart to realize the customer's requirement?
by seregarem
Wed Mar 14, 2012 8:47 pm
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

So, how can I solve this problem?
by seregarem
Wed Mar 14, 2012 7:08 pm
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

I know it. I use Gallery module to print out colors of furniture. I need, that each color would be in accord with a price. I wrote all program code and it's a problem to remake it. How to send a new value to smarty ($entry->price) from javascript?
by seregarem
Wed Mar 14, 2012 9:04 am
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Re: Dynamically change price in Products

What do you mean? Could you explain? See this example http://www.stul43.ru/index.php?mact=Pro ... eturnid=67
by seregarem
Wed Mar 14, 2012 7:34 am
Forum: Modules/Add-Ons
Topic: Dynamically change price in Products
Replies: 17
Views: 4989

Dynamically change price in Products

In my summary template in Products an user can choose a color of furniture. So, I need to change the price of furniture based on the color: an user changes color and price must be changed. As I see, I made this: <input type="radio" name="color" value="{$image->fileid}" ...
by seregarem
Mon Mar 12, 2012 1:08 pm
Forum: Modules/Add-Ons
Topic: Product Manager (CG) Sort Order
Replies: 14
Views: 7880

Re: Product Manager (CG) Sort Order

This is so simple (pseudocode) you're gonna kick yourself for not reading the smarty manual, and knowing how to create forms. I'll leave the hard work to you guys to figure out... usually takes me 5 minutes of looking at the help page to figure out the exact options. <form method="get"> <...
by seregarem
Mon Mar 12, 2012 12:05 pm
Forum: Modules/Add-Ons
Topic: Print out ALL comments in CGFeedback
Replies: 2
Views: 1082

Re: Print out ALL comments in CGFeedback

Code: Select all

{CGFeedback key1="News" action='summary'}
by seregarem
Sun Mar 11, 2012 10:19 am
Forum: Modules/Add-Ons
Topic: Print out ALL comments in CGFeedback
Replies: 2
Views: 1082

Print out ALL comments in CGFeedback

I need to print out all comments to News module. I try this {CGFeedback key1="News" action='summary'} , but nothing shows. Also, how to connect CGFeedback and FrontEndUsers? And an another question: I'm trying to use pretty URLs, but there are some situations, where I'm using direct urls. ...
by seregarem
Wed Feb 01, 2012 8:17 am
Forum: The Lounge
Topic: Message "Could not determine manipulator class name"
Replies: 2
Views: 1548

Re: Message "Could not determine manipulator class name"

I don't use $gCms in my UDT. May be there are mistakes in my UDT? Also, I have this block {cms_module module="CGCalendar" display="upcominglist" limit=5} When I delete my UDT and {cms_module module="CGCalendar" display="upcominglist" limit=5}, there are no mis...
by seregarem
Wed Jan 25, 2012 10:53 am
Forum: The Lounge
Topic: Message "Could not determine manipulator class name"
Replies: 2
Views: 1548

Message "Could not determine manipulator class name"

I created UDT: $db = cmsms()->GetDb(); $commentslimit = 5; if(isset($params['commentslimit'])){ $commentslimit = $params['commentslimit']; } $query = 'SELECT * FROM '.cms_db_prefix().'module_cgfeedback_comments WHERE status = "published" ORDER BY created DESC LIMIT '.$commentslimit; //echo...

Go to advanced search