close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues


Free 5 items of specific category for level 1 users per month

Thread began 10/05/2017 10:08 am by | Last modified 10/05/2017 12:52 pm by Ray Borduin | 146 views | 2 replies |

Free 5 items of specific category for level 1 users per month

Hello Webassist team, I would need some guidance on how to go with this.
I have a level 1 user that gets 5 free shoes of specific category per month. They can choose and add to the cart as many shoes from multiple categories as they like, but only 5, or less depending if they already purchased them before, are going to be free and only from the allowed category. Next month the number resets to 5 again.
Example 1: Say the level 1 user selects 6 shoes, well, then he will only have to pay for 1 shoe.
Example 2: Say the level 1 user has already used 3 of his 5 free shoes per month , then he has 2 free shoes to use. If he adds 6 shoes and has only 2 free shoes to use then he pays for the remaining 4.

All 5 free shoes say are from category 1, while other shoes in the catalogue have different categories.

Does this make sense the way I laid it out? Any ideas on how best to approach this? Thanks much as usual.

Sign in to reply to this post

Ray BorduinWebAssist

You are going to have to build the logic into the cart. Check the database for how many shoes they have purchased and maybe set a session variable to credit them for the first x shoes that are free. It isn't something that can be done from an interface directly, so you will have to hand code it. We could help with something like this in a premier support ticket.

Sign in to reply to this post

Thanks Ray, I will see if I can make it myself, otherwise I will request a premium support. Have a nice one!

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...