Jump to content

Shopping Cart Icon


HeadStand

Recommended Posts

%7Boption%7D


File Name: Shopping Cart Icon

File Submitter: HeadStand

File Submitted: 15 Aug 2011

File Category: Integration

  • Displays a shopping cart icon in the upper right corner of the screen (next to the notifications).
  • Includes the number of items currently in the user's cart
  • Links to the "View Cart" page if cart is not empty
  • Appears for both members and guests

here to download this file

Link to comment
Share on other sites

Hello,

Thank you for making this hook available, I enjoy it quite a lot.

However, the icon is not similar to the other default icons on version 3.2, here is a screenshot: post-116148-0-46640900-1313965203.png

Would it be possible to get rid of the "Cart" text and ensure that the white color on the cart image matches the same white tonality of the other icons to ensure a perfect integration?

Just so you know, very good work!

:)

Link to comment
Share on other sites

You can customize the template any way you like - you can find it in your ACP under
Look & Feel -> Manage Skins & Templates -> Skin -> (Nexus) Payments -> shoppingCartIcon.

For the image... I'll have to look around for a better image (or ask one of my designer friends to help me out with that). I'm REALLY not a designer, so I'm not making any promises. :lol:

Link to comment
Share on other sites

  • 2 weeks later...
  • 5 weeks later...
  • 2 months later...

Just FYI, In Skinbox Surface Skin (For IPB 3.2.3) I had to make an adjustment to 0px from 13px to make the cart show


style='position: relative; padding: 0px;



Unless there is a a differnt code change, this worked for my site


You can customize the template any way you like - you can find it in your ACP under




For the image... I'll have to look around for a better image (or ask one of my designer friends to help me out with that). I'm REALLY not a designer, so I'm not making any promises. [img]

[/img]


Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...

Is there a way to make this show "an empty cart" page if they have no items in their cart, rather than going to an error page, that shows this: "[#404] Sorry, we could not locate the page you are requesting to view. Please click here to return to the community index" Couldnt it just goto to "your cart is empty"... Would look better than the "error" page.. =

Link to comment
Share on other sites

  • 2 weeks later...
  • 4 weeks later...
  • 3 weeks later...

hrm cart icon still displayed to me even if cart is empty... Possible to add so that if cart is empty and someone clicks on icon it redirects them to store?



Thanks



The cart icon is still displayed, it just doesn't link to anything (this was based on a previous request).

Of course, you can customize the template as you wish - you can find it in Nexus Payments -> shoppingCartIcon.

Find:

<else />

    <img src='{$this->settings['img_url']}/nexus/cart.png' title='{$this->lang->words['cart']}'/>

  </if>

Replace with:

<else />

    <a href='{parse url="app=nexus" base="public" seotitle="false" template="app=nexus"}'><img src='{$this->settings['img_url']}/nexus/cart.png' title='{$this->lang->words['cart']}'/></a>

  </if>



That should do it.

Link to comment
Share on other sites

  • 9 months later...
  • 7 months later...

I noticed if I put an item in the cart and then leave my "Store" (i.e. Nexus), the cart icon no longer indicates there is an item in it. Once a user re-enters the Store, the icon lights up again with the correct number of items in the cart.

So essentially this icon is only lighting up the number of items in the cart when a user is in the Store.

I love the idea of this mod if it can still be supported.

Link to comment
Share on other sites

  • 2 weeks later...

I noticed if I put an item in the cart and then leave my "Store" (i.e. Nexus), the cart icon no longer indicates there is an item in it. Once a user re-enters the Store, the icon lights up again with the correct number of items in the cart.

So essentially this icon is only lighting up the number of items in the cart when a user is in the Store.

I love the idea of this mod if it can still be supported.

I came to post the same thing. I love this mod as well, great work! Is it possible to retain the cart information while you are in IPContent, IPBoard, etc? Let me know if I can help!

Link to comment
Share on other sites

  • 3 weeks later...

I noticed if I put an item in the cart and then leave my "Store" (i.e. Nexus), the cart icon no longer indicates there is an item in it. Once a user re-enters the Store, the icon lights up again with the correct number of items in the cart.

So essentially this icon is only lighting up the number of items in the cart when a user is in the Store.

I love the idea of this mod if it can still be supported.

Unfortunately, I can't do this. The cart data is simply unavailable to me outside of Nexus. Kind of sucks... :(

Link to comment
Share on other sites

  • 2 weeks later...

^^ or that. It sounds like the ipb apps are sandboxed and that she cannot access ip.nexus data from other apps. I'm unsure of ones ability to do database queries, but if that's possible I cannot understand why that data cannot be accessed from any portion of the apps.

Regardless, showing an icon that does nothing and will never do anything seems to be illogical at best. Having it work on all pages is obviously the right answer, but that seems to not be possible somehow.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...