ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Customizing ProductCart
  New Posts New Posts RSS Feed - Finding ProC's listing of value="#" for customized
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

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

 Post Reply Post Reply
Author
Message
Casey_ULA View Drop Down
Newbie
Newbie
Avatar

Joined: 10-July-2009
Location: Logan, UT
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Casey_ULA Quote  Post ReplyReply Direct Link To This Post Topic: Finding ProC's listing of value="#" for customized
    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
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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 - 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. 
Back to Top
Casey_ULA View Drop Down
Newbie
Newbie
Avatar

Joined: 10-July-2009
Location: Logan, UT
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Casey_ULA Quote  Post ReplyReply Direct Link To This Post 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 -->


    Edited by Casey_ULA - 31-December-2010 at 12:40pm
Casey
Fun Facilitator
www.ula-equipment [d]com
Back to Top
Greg Dinger View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers
Avatar

Joined: 23-September-2006
Location: United States
Status: Offline
Points: 238
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greg Dinger Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Casey_ULA View Drop Down
Newbie
Newbie
Avatar

Joined: 10-July-2009
Location: Logan, UT
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote Casey_ULA Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.