A few questions on Multiship

kanjigirlkanjigirl Member
in Help edited May 2009
I've got multiship working but I have a few questions...

First, when I include the .js in the head section, my cart goes from lightbox-sized to full-page. How do I keep it in a lightbox?

Second, I need to show three multiship options on one form - it's for magazine gift subscriptions, and the client wants three. Do I just copy and paste the ship_to_container piece three times in that form? That seems to work in checkout but it doesn't look good on the page; if I select 'add a new recipient' for the first gift, the box and text appears below all three instances. Is there a way to make that not happen?
Comments
  • I need to edit my post - this isn't working at all for me.

    I need to have three instances of gift subscriptions - see the middle part of this page:

    http://www.getbornmag.com/subscribe_cart.html

    I don't know how else to do this, but this only pulls in the data from the last gift sub fieldsets - if I fill in all three, only the last one goes through. How can I get this working properly?
  • lukeluke FoxyCart Team
    edited May 2009
    Hey Kangigirl. The example multiship javascript we provided wasn't designed to handle the situation you're describing. Do you have a developer familiar with jQuery you're working with that can work on this for you? If not, we can recommend some.
  • Luke,

    I got it - I removed the three instances and just have the one. It's working but I still have the lightbox problem.

    On this page http://www.getbornmag.com/subscribe_cart.html, if I have this Javascript in the header my cart will not open in the lightbox, it opens on a full page and you can't see the 'continue shopping' link:

    <script src="http://www.getbornmag.com/js/multiship.jquery.js"; type="text/javascript" charset="utf-8"></script>

    If I remove this line, the cart opens in the lightbox but of course multiship stops working.

    Is there something in that js that I need to change in order to use the lightbox, which I need?
  • lukeluke FoxyCart Team
    As I mentioned, you'll probably need to involve a developer to work with you to create your own multiship jquery code. Just including that file will probably not work for you.
  • I'm sorry, I don't understand - I changed it back to just one instance of multiship fields after Luke's note, it's working perfectly except that I now have no lightbox.

    Is the multiship.js not designed for use with the lightbox?
  • Also, I didn't know if this might help or not - this is what I have in the header.

    <!-- BEGIN FOXYCART FILES -->
    <script src="http://www.getbornmag.com/js/multiship.jquery.js"; type="text/javascript" charset="utf-8"></script>
    <script src="https://getbornmag.foxycart.com/files/foxycart_includes.js"; type="text/javascript" charset="utf-8"></script>
    <link rel="stylesheet" href="https://getbornmag.foxycart.com/files/foxybox.css"; type="text/css" media="screen" charset="utf-8" />
    <link rel="stylesheet" href="https://getbornmag.foxycart.com/themes/standard/theme.foxybox.css"; type="text/css" media="screen" charset="utf-8" />
    <link rel="stylesheet" href="https://getbornmag.foxycart.com/themes/standard/styles.css"; type="text/css" media="screen" charset="utf-8" />
    <!-- Override FoxyCart CSS with your own stylesheet: -->
    <link rel="stylesheet" href="http://www.getbornmag.com/css/cart.css"; type="text/css" media="screen" charset="utf-8" />
    <!-- END FOXYCART FILES -->
  • brettbrett FoxyCart Team
    Hi Kanjigirl.
    You have your multiship.jquery.js file called before your foxycart_includes.js file, so the first file is trying to use jQuery when jQuery isn't defined yet. Try change the order of those and see if you can make something happen.

    Also, try turning on the console in your Firebug. That will alert you of errors, which can be very helpful in debugging.
  • Hi Brett,

    I tried moving multiship.js to the end, just before the closing header tag. Didn't make a difference.

    However with Firebug on I get one error:

    [Exception... "'Syntax error, unrecognized expression: [@name=shipto]' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]

    Does that suggest any changes I should make?

    The cart is acceptable for this temporary use as it is, showing up on a page, but I really need to have a 'continue shopping' button. Is there a specific code snippet to use for that?
  • brettbrett FoxyCart Team
    Hi Kanjigirl.
    Yeah, v051 has the latest version of jQuery, so that's changed a bit. Sorry about that. If you can give me a little bit I'll see if somebody on our end can update that code. Sorry for the trouble you're having.
  • That's great Brett, just let me know when you have something. We're testing our Paypal set up but if need be we can work with the page-based cart for awhile, if I can put a 'continue shopping' link on it. Do you have a code snippet for that?
  • Hi Brett - do you know yet whether someone would be able to update whatever needs updating?

    If not, that's fine, but I do need to get the correct link snippet to create my own Continue Shopping button. Can you give me that code, then we'll be good to go with at least a page-based cart.
  • brettbrett FoxyCart Team
    Hi Kanji.
    We'll have somebody take a look at this as quickly as we can. Thanks for your patience.
  • JoseJose Member
    edited June 2009
    Hi Kanji,

    Brett, asked me to fix the multiship javascript. I uploaded a new version of the CODE section at http://wiki.foxycart.com/integration:foxycart:multiship_javascript please update your foxycart_includes.js file with the content of the CODE section.

    I tested the script using Internet Explorer 6, Internet Explorer 7, Firefox 2, Firefox 3 and the Gnome Epiphany WebBrowser and now it seems to be fixed. Please inform me if this fix your problem.

    Best Regards,
Sign In or Register to comment.