If Then Else... Add to Cart vs. Finance button |
Post Reply |
Author | |
Sprocket
Newbie Joined: 06-August-2013 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
Posted: 06-August-2013 at 4:51pm |
Hey ProductCart -
I've got a scenario that I've been tasked with from the Bossman. Let's start by looking at this page: https://hottanningbeds.com/tanningbeds/pc/viewPrd.asp?idcategory=507&idproduct=3753 NOW, here's the deal... I need to write an IF THEN ELSE statement that will allow me to hide the "Add to Cart" button based on the "idproduct" and keep the "APPLY NOW" button so that essentially SOME products are fully purchasable, and some are finance only, and some continue to carry BOTH buttons. Seems like "viewPrdL" carries the ADD to CART button scripts, but these scripts also seem to be nested IF statements... Any suggestions, help, insights? Thanks Sprocket |
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
You need go look at the viewPrdCode.asp script, and find pcs_AddtoCart. That's where the ATC button gets displayed.
Beyond that, you may need to add a flag to the product admin, and then use that flag to trigger which products get ATC button or not. If you are not comfortable altering the admin tools, installing this mod will give you the flag which you can use to facilitate your requirement: http://www.greybearddesign.com/productcart/tabbed-product-page/ I could describe the rest of the drill in a quick phone call. |
|
Sprocket
Newbie Joined: 06-August-2013 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Thanks Greg - Appreciate the help.
We're currently running V3.1 - The original site designer/developer had not bothered with making sure the updates to the ProductCart were being implemented. SO, I'll have a few questions regarding updates. I guess the first of which is, "is there a way to make the ATC button function as we'd discussed without having to go through the version update"?? I don't wanna have an issue where I update the over all site, only to realize that doing so ended up killing our site, not reading the database, or overwriting product within the storefront. Our site also has forms included for applying for financing. These forms MUST NOT change, their details go back at least 1 year, and for business related needs they must remain in the system overall. Can you give me any insights into making sure the files which make our Financing happen are NOT eliminated, or overwritten when an update to the ProductCart takes place? I'm also in the midst of a complete redesign of the site, which means this site is currently only accessible via it's IP address vs. the Domain Name being active yet. Is that going to pose any issues when attempting to update our version?!? Thanks Sprocket
|
|
Greg Dinger
Certified ProductCart Developers Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
|
What you are asking for could be done in 3.1, but that's not a good idea. At v3.1, it is almost assuredly vulnerable to attack. Security events that have occurred in the years since 3.1 was released resulted in a great deal of attention to defensive mechanisms that now exist in the latest code. Clearly, you need to upgrade the store. If you don't feel confident about performing an upgrade without breaking the store, you can reach out to any of the developers, including ourselves, in order to get that work done. Unless the site is altered in some significant manner, upgrading is not that big an issue. And even if it is altered, the risk associated with potential security issues versus biting the bullet and getting the upgrade done is probably a fools choice. Convey to the site owner to understand the importance of the upgrade, then reach out to one of us for help. With regard to your "can this be done" question, yes, any competent programmer familiar with ProductCart can make that happen. One approach might be to set a flag indicating which products apply to the rules you wish to set. Or perhaps there are other logic choices that can be established. Without discussing the project with you I'm only speculating, but the bottom line is yes - this can be done. The reason I pointed you to our tabbed product page module is because it includes the introduction of several extra input fields and checkboxes. One of those checkboxes could become the switch to engage this functionality. As for your forms, so long as those are working now, I don't see why they won't work after an upgrade. Upgrading the database WILL NOT impact any data that was introduced to the system previously. And no, your IP concern is not an issue. Want help? |
|
Sprocket
Newbie Joined: 06-August-2013 Location: United States Status: Offline Points: 4 |
Post Options
Thanks(0)
|
Greg -
Thanks very much and YES, I'd like some help with this one.
I'm an "ok" programmer when it comes to HTML, Javascript, and PHP... ASP, not so much! I've included the IP address and domain name of the site that we'll need to see about upgrading. 108.167.132.20 hottubsforless.com www.hottubsforless.com Basically, I add the path seen in red to my HOST file on my local machine, and it points to the correct location since the Nameservers have not yet been set to direct the domain name yet... I wanted to make sure the site was completely ready to go live before I pointed the Nameservers to the proper location. SO, Since I'm only familiar with the site as it currently exists, which was my first introduction to ProductCart, I'm not sure what (if any) modifications were implemented beyond the Version 3.1 install package... Can I ask you to review the site, (even if I have to give you login info for the admin area), just so we're both on the same page regarding what additional modifications were made to our ProductCart? And so you could perhaps look over the Finance Applications and the "Manage Apps" section of the site to see if the update from V. 3.1 to the current version would interupt/overwrite our finance materials?!? I don't wanna lose anything within orders or finance apps otherwise I'd lose my job!! LOL!! Good to know the database won't be affected either. That'd probably end up costing me more than my job! HAHAAaa. SO, what's our next step? What do you need from me to start getting the update installed? I assume you'll need me to purchase the $195 upgrade, right? Thanks. |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |