Digital experiences for all disciplines
New Landing › How can we help? › Atelier › Remove Cart from Site
New Landing › How can we help? › Atelier › Remove Cart from Site
- This topic has 15 replies, 4 voices, and was last updated 8 years by David Martin – Support.
-
Posted in: Atelier
-
December 14, 2015 at 10:15 am #235182
Hello,
I am trying to remove the cart functionality from my website but keep the wishlist on the header as well as product pages. I have been able to delete the cart button icon on both the header and product pages, but the dropdown still is visible when I hover over where the cart icon used to be (in the header). Is there any way to disable the cart visibility on the header and still keep the wishlist?
Thanks!
RachelAttachments:
You must be logged in to view attached files.December 14, 2015 at 11:19 am #235199Hi,
Looks like you would just need this also:
#header .header-right .aux-item .std-menu li.shopping-bag-item ul.sub-menu, .shopping-bag-item:hover>a:after { display: none!important; }
Thanks.
December 14, 2015 at 11:27 am #235203Thanks for the quick response!
Is there anyway to remove the hand and link that says “View your shopping cart”?
Also, I was just creating my product pages and it seems to be that the when you hover over a product you can either add it to your wishlist or cart. Is there custom CSS I could input that would remove the “add to cart” button + link (see screen shot)?
Attachments:
You must be logged in to view attached files.December 14, 2015 at 11:43 am #235208No problem.
1) You would need to activate your child theme. Inside the child theme function.php file you will need to copy in the function
sf_get_cart()
. This is located/wp-content/themes/atelier/swift-framework/core/sf-header.php
starting on line 971. Copy that add and comment out the the lines:$cart_output .= '<li class="parent shopping-bag-item"><a class="cart-contents" href="' . $woocommerce->cart->get_cart_url() . '" title="' . __( "View your shopping cart", "swiftframework" ) . '">'. apply_filters( 'sf_header_cart_icon', '<i class="ss-cart"></i>' ) . $cart_total . '<span class="num-items cart-count-enabled">' . $cart_count_text_alt . '</span></a>';
2) Please use this:
.add-to-cart-wrap { display: none!important; }
Thanks,
David.December 14, 2015 at 6:20 pm #235360Hi David,
I tried to access the child theme (the following address): http://etsycurated.com/wp-content/themes/atelier/swift-framework/core/sf-header.php but, I a “fatal error” occurred. Any idea what could have gone wrong?
Best,
RachelAttachments:
You must be logged in to view attached files.December 14, 2015 at 6:26 pm #235364Can you list the steps you did?
Did you active the child theme? Atelier-Child?
Please also add your FTP details.
Thanks.
December 15, 2015 at 11:07 am #235529Hi David,
I have been able to activate the child theme and then I went to change the sf-header.php copy (to be used for the child theme) but after I copied in the code above, I didn’t see any changes with the website. Could I have entered in the code in the wrong area or incorrectly(see attached file).
Best,
RachelDecember 15, 2015 at 1:32 pm #235555You need to copy the code to your child theme’s functions.php file
– Kyle
December 15, 2015 at 7:48 pm #235687I was able to figure it out – thanks!
December 15, 2015 at 7:50 pm #235688Great, glad you got it sorted!
Thanks.
December 16, 2015 at 8:14 am #235778I am going through my site and realized that while the cart button & text has disappeared, the wishlist has also disappeared on product pages. Is there a way to show the Wishlist icon/feature on the product pages and also as the overlay that appeared when you hovered over the products (see screenshots).
Attachments:
You must be logged in to view attached files.December 17, 2015 at 1:47 pm #236210Hi,
Is the Wishlist plugin activated?
I can no longer login with the details you provided.
Thanks.
January 8, 2016 at 8:41 am #238990Sorry for just getting back to you (away for the holiday). The plugin is still activated and it shows up on the top of the page in the navigation area. However, when I commented out the section to remove the cart from showing up, the wishlist also disappeared. Let me know if you need my login is details to check it out.
Best,
RachelJanuary 11, 2016 at 6:36 am #239366Hi,
My colleague will assist you shortly.
Thanks
MohammadJanuary 25, 2016 at 4:26 pm #243433Just wanted to check in and see if someone was able to take a look at my issue with the wishlist not showing up.
Let me know!
Thanks,
Rachel -
Posted in: Atelier
You must be logged in and have valid license to reply to this topic.