Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2011
    Posts
    44
    Plugin Contributions
    0

    Default Trouble cloning UPSXML

    I'm having trouble cloning UPSXML to use as an alternate shipping method. I'm changing it to upsxmlfrozen and UPSXMLFROZEN, no underscore or hyphen, and I'm getting...

    Fatal error: Cannot redeclare exclude_choices() (previously declared in E:\web\public_html\fiesta\texastamale\store\includes\modules\shipping\upsxml.php :880) in E:\web\public_html\fiesta\texastamale\store\includes\modules\shipping\upsxmlfroz en.php on line 910

    I cloned Store Pickup to list 2 stores and didn't have a problem.

    Any ideas?

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Trouble cloning UPSXML

    You will see that the upsxml.php contains a function on line 880:
    function exclude_choices($type) {

    sounds like both modules, the original and the clone, are loading the same function so you get a duplicate ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #3
    Join Date
    Jul 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Trouble cloning UPSXML

    Thanks Ajeh. I did see that but was hesitant to just yank it out. I just deleted both the function exclude_choices($type) and the function ready_to_shipCmp( $a, $b) sections as that gives a duplicate error too, and Admin now gives me...

    Fatal error: Cannot redeclare class XMLDocument in E:\web\public_html\fiesta\texastamale\store\adminarea\includes\classes\xmldocume nt.php on line 29

    That's a completely different file so maybe there's more to cloning this UPSXML module.

    What I'm trying to do is create a separate UPS shipping module for assigning to frozen food products my client sells which will have a different zone (US and Territories only), weights are all 0, and shipping is included in the price already.

    I've read several of your threads about using the Document / Product category ID so you can assign a cloned shipping module to the specific requirement you have (frozen sent UPS 2-day in my case). Can you kindly show me those couple of code edits that says if UPSXMLFROZEN, use this module... otherwise use UPSXML? And how to finish cloning the upsxml module so Admin likes it?

    Many, many thanks ahead of time! Been struggling with this not being a developer.

    http://www.texastamale.com/store/
    (Tamales/Survival Kits category have the frozen items)

  4. #4
    Join Date
    Jul 2011
    Posts
    44
    Plugin Contributions
    0

    Default Re: Trouble cloning UPSXML

    And how might I create a new Category ID that's more like products_frozen instead of document_product? Must be done with code as I can't see where to create one from the Admin.

 

 

Similar Threads

  1. Upsxml please help
    By hrinfo in forum Addon Shipping Modules
    Replies: 3
    Last Post: 3 Dec 2009, 08:28 AM
  2. UPSXML Help needed
    By vaige in forum Addon Shipping Modules
    Replies: 2
    Last Post: 15 Apr 2009, 06:53 PM
  3. Trouble cloning - incorrect values passed to the checkout_payment page
    By bjornenke in forum Built-in Shipping and Payment Modules
    Replies: 4
    Last Post: 9 Aug 2008, 04:42 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR