Print Page | Close Window

Finding ProC's listing of value="#" for customized

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Customizing ProductCart
Forum Description: Exchange messages with other users that are customizing ProductCart.
URL: https://forum.productcart.com/forum_posts.asp?TID=4236
Printed Date: 14-July-2025 at 9:37am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Finding ProC's listing of value="#" for customized
Posted By: Casey_ULA
Subject: Finding ProC's listing of value="#" for customized
Date Posted: 31-December-2010 at 11:49am
I want to integrate ProC into a customized front end. How do I find the product value, and the related options values for items I've put into ProC?

Also how do I go about identifying
name="OptionGroupCount"
or idOption# for ProC so I can use the same (should I use same) in front end code?

Thanks
Casey

-------------
Casey
Fun Facilitator
www.ula-equipment [d]com



Replies:
Posted By: Greg Dinger
Date Posted: 31-December-2010 at 12:04pm
Casey - it's very tricky and complicated what you ask.  What you seem to be asking for is "how does one cause a product appear on a custom page while maintaining all of the stock functionality, at least as it pertains to product options".
 
This is a v2 store http://www.opakallc.com/bosstin.asp - http://www.opakallc.com/bosstin.asp  - one of the first I built when I started with PC.  I still recall the sheer frustration of building the code that I implemented to cause the dropdown to appear on the products at the bottom of this page.
 
I believe that the task here is well above what can be easily tackled here in the forum.  It's going to require seeing the format you are seeking to achieve, and then developing custom code to make it all happen correctly. 


-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: Casey_ULA
Date Posted: 31-December-2010 at 12:23pm
@Greg

Thanks for the response.

Well I'm not starting from scratch, I'm trying to get a better understanding of where numbers that are working in the purchased web site front end match or miss match back end.

I'm hoping to expand my knowledge. I tried the wiki and didn't find what I was seeking (IMHO the early impact wiki is weak for 'teaching' / explaining the how / why)

Any ways here is a more detailed question I posted on codingforum com

[questions]

    What does name="OptionGroupCount" refer?
    & Why does site code not match shopping cart code?


    [Why I ask] I noticed that source code has [ICODE] name="OptionGroupCount" value="[lots of different #s]" [/ICODE] on front end but the live code of back-end do not match.

    [Example and see below]
    front-end - ula-equipment.com/cdt.asp (source 1)

    back-end - CDT backpack in shopping cart (source 2)




    [history] Company website was built by professionals. I inherited maintenance.
    Front-end is   .asp   and integrates with a shopping cart Product Cart v3.5

    [how question arose] as I am preparing for a new option to be added to all backpacks, I noted that front end OptionGroupCount and back end OptionGroupCount were miss matched on many products.

    [follow up question] Do I need the front end OptionGroupCount to be unique between front end pages i.e. each product? As the pages have been working I see that I do not need the front end to match back end code, but should I clean this up since i'm doing this work?

    [ aspiration]I want to learn a best practice approach to all things coding. I hope that by understanding this OptionGroupCount I'll write cleaner code in future and or identify where I do not need to spend time editing existing source code.


    Source 1

    <td>Pack Total:
    
                            <!-- update these -->
                            <input type="hidden" name="OptionGroupCount" value="11" />
                            <input type="hidden" name="idproduct" value="5" />
                            <input type="hidden" name="baseWeight" id="baseWeight" value="17" />
                            <input type="hidden" name="baseCost" id="baseCost" value="135" />
                            <!-- /update these -->
                            <input type="hidden" name="calculatedTotal" id="calculatedTotal" value="0" />
                            <input type="hidden" name="calculatedWeight" id="calculatedWeight" value="0" />
                            <input type="hidden" name="previouslySelectedRadioButton" value="0" /></td>
                          <td><input name="weight" type="text" id="weight" onfocus="this.blur();" size="4" maxlength="5" readonly />
                            oz</td>
                          <td>$
                            <input name="total" type="text" id="total" onfocus="this.blur();" size="5" readonly /></td>
                        </tr>
                      </table>


    Source 2


    <input type="hidden" name="OptionGroupCount" value="4">



                                                 <!-- End Product Options -->


    -------------
    Casey
    Fun Facilitator
    www.ula-equipment [d]com


Posted By: Greg Dinger
Date Posted: 31-December-2010 at 12:50pm
Sorry - you have gone from something that was very vague to very detailed and is going to require time that I cannot spare today. Unless someone else is able to reply based on having memorized these values, it's going to take research time to go dig in and look at this for you.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: Casey_ULA
Date Posted: 31-December-2010 at 1:42pm
@ greg Thanks I realize forum contributors need to balance effort and availability to answer questions.

Maybe (for others to see too) the main interest I have is my aspiration for best practices. I can make the modifications additions work.

I add products in ProC then preview and inspect via google chrome. I get the numbers I need and update the front end accordingly.

quote
[ aspiration]I want to learn a best practice approach to all things coding. I hope that by understanding this OptionGroupCount I'll write cleaner code in future and or identify where I do not need to spend time editing existing source code.

[follow up question] Do I need the front end OptionGroupCount to be unique between front end pages i.e. each product? As the pages have been working I see that I do not need the front end to match back end code, but should I clean this up since i'm doing this work?


                                          

-------------
Casey
Fun Facilitator
www.ula-equipment [d]com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net