.mbm-book-buy-links-image {
box-shadow: none;
}
in custom CSS now, but it’s not working. I’ve tried applying same to all these:
#mbm-book-links1 .mbm-book-buy-links-image
#mbm-book-page .mbm-book-buy-links-image
.mbm-book-buy-links-image
a img
img
and no dice. I’m using GeneratePress for the theme, if that makes a difference – anyone have any ideas how I can nuke the shadow boxes?
]]>I’ll try to put in as much detail as I can. So I’m running wordpress on a hostgator subdomain. I don’t yet have an SSL certificate and my website is http not https (which I think may have something to do with my issue. I’m running the Oxygen app visual editor.
So my problem is, when I try to put a buy button on a page using the short code [add_to_cart id=’xx’] (if the syntax of the shortcode is wrong it’s because I did it from memory) What that does is display a price and a “read more” button on my page. that read more button takes me to the product page that woocommerce generated. That product page has nothing on it and if I use the [product] shortcode it still has a read more button. How to I add a button that adds a product to the cart?
]]>I use the below platforms:
~WordPress v.4.61
~Suffusion Theme v4.49
I noticed multiple buy buttons appearing on each product/service page of my site after updating to WordPress v4.6.1. It is at this time I planned to make revisions to each page.
I connected w/ Shopify gurus and followed the new buy button installation procedure for www.ads-software.com. The code generated via said process [second example below] failed to display any buy buttons.
Deactivation of all plugins and attempts to install a collection to respective site pages did not correct the issue[s].
Shopify gurus instructed me to connect w/ WordPress gurus to investigate any theme or related glitches.
Please find below examples of my site pages:
https://thewholisticedge.com/consulting/inside-out-health/
https://thewholisticedge.com/consulting/inside-out-performance/
https://thewholisticedge.com/consulting/zen-of-wellness/
https://thewholisticedge.com/consulting/inside-out-nutrition/
CODE
Please find below two examples of code during correspondence w/ Shopify gurus. Both examples seem much longer than I remember when I initially installed the same buy buttons before the Shopify site changed and I updated to WordPress v4.6.1.
1~Please find code that creates multiple buy buttons for each product/service page after updating WordPress to v4.6.1:
<div data-embed_type=”product” data-shop=”the-wholistic-edge.myshopify.com” data-product_name=”WC 2″ data-product_handle=”wc-2″ data-has_image=”false” data-display_size=”compact” data-redirect_to=”checkout” data-buy_button_text=”Purchase” data-buy_button_out_of_stock_text=”Out of Stock” data-buy_button_product_unavailable_text=”Unavailable” data-button_background_color=”191a18″ data-button_text_color=”f5eded” data-product_modal=”false” data-product_title_color=”000000″ data-next_page_button_text=”Next page”></div>
<script type=”text/javascript”>
document.getElementById(‘ShopifyEmbedScript’) || document.write(‘</script><script type=”text/javascript” src=”https://widgets.shopifyapps.com/assets/widgets/embed/client.js” id=”ShopifyEmbedScript”>< \/script>’);
</script>
<noscript>Buy WC 2</noscript>
CODE
2~Please find generated code that does not display any buy buttons via revamped Shopify instructions:
<div id=’product-component-444e7265e3f’></div>
<script type=”text/javascript”>
//<![CDATA[
/* <BuyButton> */
(function () {
var scriptURL = ‘https://sdks.shopifycdn.com/buy-button/latest/buy-button-storefront.min.js’;
if (window.ShopifyBuy) {
if (window.ShopifyBuy.UI) {
ShopifyBuyInit();
} else {
loadScript();
}
} else {
loadScript();
}
function loadScript() {
var script = document.createElement(‘script’);
script.async = true;
script.src = scriptURL;
(document.getElementsByTagName(‘head’)[0] || document.getElementsByTagName(‘body’)[0]).appendChild(script);
script.onload = ShopifyBuyInit;
}
function ShopifyBuyInit() {
var client = ShopifyBuy.buildClient({
domain: ‘the-wholistic-edge.myshopify.com’,
apiKey: ’10c3b84a2bfd9f73d8822e28f4483636′,
appId: ‘6’,
});
ShopifyBuy.UI.onReady(client).then(function (ui) {
ui.createComponent(‘product’, {
id: [5472879873],
node: document.getElementById(‘product-component-444e7265e3f’),
moneyFormat: ‘${{amount}}’,
options: {
“product”: {
“buttonDestination”: “cart”,
“layout”: “vertical”,
“variantId”: “all”,
“width”: “240px”,
“contents”: {
“img”: false,
“title”: false,
“variantTitle”: false,
“options”: true,
“price”: false,
“description”: false,
“buttonWithQuantity”: false,
“button”: true,
“quantity”: false
},
“text”: {
“button”: “Purchase”
},
“styles”: {
“product”: {
“@media (min-width: 601px)”: {
“max-width”: “100%”,
“margin-left”: “0”,
“margin-bottom”: “50px”
}
},
“button”: {
“background-color”: “#141413”,
“color”: “#ffffff”,
“font-family”: “Helvetica Neue, sans-serif”,
“font-size”: “15px”,
“padding-top”: “16px”,
“padding-bottom”: “16px”,
“padding-left”: “26px”,
“padding-right”: “26px”,
“border”: “none”,
“:hover”: {
“background-color”: “#222220”,
“color”: “#ffffff”
},
“border-radius”: “3px”,
“:focus”: {
“background-color”: “#222220”
}
},
“variantTitle”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-size”: “14px”,
“color”: “#4c4c4c”
},
“title”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “bold”,
“font-size”: “26px”,
“color”: “#4c4c4c”
},
“description”: {
“color”: “#4c4c4c”,
“font-size”: “14px”,
“font-family”: “Helvetica Neue, sans-serif”
},
“price”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-size”: “18px”,
“color”: “#4c4c4c”
},
“quantityInput”: {
“font-size”: “16px”,
“padding-top”: “16px”,
“padding-bottom”: “16px”,
“color”: “#4c4c4c”
},
“compareAt”: {
“font-size”: “15px”
}
}
},
“cart”: {
“contents”: {
“title”: true,
“lineItems”: true,
“footer”: true,
“button”: true
},
“text”: {
“title”: “Cart”,
“total”: “Total”,
“notice”: “Shipping and discount codes are added at checkout.”,
“button”: “CHECKOUT”,
“empty”: “Your cart is empty.”
},
“styles”: {
“button”: {
“background-color”: “#141413”,
“color”: “#ffffff”,
“font-family”: “Helvetica Neue, sans-serif”,
“font-size”: “16px”,
“padding-top”: “16px”,
“padding-bottom”: “16px”,
“padding-left”: “26px”,
“padding-right”: “26px”,
“border”: “none”,
“:hover”: {
“background-color”: “#222220”,
“color”: “#ffffff”
},
“border-radius”: “3px”,
“:focus”: {
“background-color”: “#222220”
}
},
“cart”: {
“background-color”: “#ffffff”
},
“footer”: {
“background-color”: “#ffffff”
},
“title”: {
“color”: “#4c4c4c”
},
“close”: {
“:hover”: {
}
}
}
},
“modalProduct”: {
“contents”: {
“img”: true,
“title”: true,
“variantTitle”: false,
“options”: true,
“price”: true,
“description”: true,
“buttonWithQuantity”: false,
“button”: true,
“quantity”: false
},
“text”: {
“button”: “ADD TO CART”
},
“styles”: {
“product”: {
“@media (min-width: 601px)”: {
“max-width”: “100%”,
“margin-left”: “0px”,
“margin-bottom”: “0px”
}
},
“button”: {
“background-color”: “#141413”,
“color”: “#ffffff”,
“font-family”: “Helvetica Neue, sans-serif”,
“font-size”: “15px”,
“padding-top”: “16px”,
“padding-bottom”: “16px”,
“padding-left”: “26px”,
“padding-right”: “26px”,
“border”: “none”,
“:hover”: {
“background-color”: “#222220”,
“color”: “#ffffff”
},
“border-radius”: “3px”,
“:focus”: {
“background-color”: “#222220”
}
},
“variantTitle”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-size”: “14px”,
“color”: “#4c4c4c”
},
“title”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “bold”,
“font-size”: “26px”,
“color”: “#4c4c4c”
},
“description”: {
“color”: “#4c4c4c”,
“font-size”: “14px”,
“font-family”: “Helvetica Neue, sans-serif”
},
“price”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-size”: “18px”,
“color”: “#4c4c4c”
},
“quantityInput”: {
“font-size”: “16px”,
“padding-top”: “16px”,
“padding-bottom”: “16px”,
“color”: “#4c4c4c”
},
“compareAt”: {
“font-size”: “15px”
}
}
},
“productSet”: {
“styles”: {
“products”: {
“@media (min-width: 601px)”: {
“margin-left”: “-20px”
}
}
}
},
“toggle”: {
“styles”: {
“toggle”: {
“font-family”: “Helvetica Neue, sans-serif”,
“background-color”: “#141413”,
“:hover”: {
“background-color”: “#222220”
},
“:focus”: {
“background-color”: “#222220”
}
}
}
},
“modal”: {
“styles”: {
“modal”: {
“background-color”: “#ffffff”
}
}
},
“option”: {
“styles”: {
“label”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “normal”,
“color”: “#4c4c4c”
},
“select”: {
“font-family”: “Helvetica Neue, sans-serif”,
“font-weight”: “normal”,
“color”: “#4c4c4c”
}
}
}
}
});
});
}
})();
/* </BuyButton> */
//]]>
</script>
Thank you for your time and assistance.
Sorry for the lengthy post.
I look forward to your reply.
Namaste…
~jsk
]]>https://www.ads-software.com/plugins/mybooktable/
]]>Shopify has looked at the problem and concluded there is something in the theme code that is suppressing the shopping cart. I have the barest coding skills and haven’t got a clue what might be wrong. What steps can I take to try to trouble shoot this myself, or can I open some kind of support ticket with wordpress about the issue with the theme?
This cart code has been placed in the footer:
<div data-checkout_button_text="Checkout" data-cart_button_text="Cart" data-button_text_color="ffffff" data-button_background_color="7fb466" data-background_color="ffffff" data-text_color="000000" data-accent_color="767676" data-cart_title="Your cart" data-discount_notice_text="Shipping and discount codes are added at checkout." data-cart_total_text="Total" data-sticky="true" data-embed_type="cart" data-shop="faircrochet.myshopify.com"></div>
<script type="text/javascript">
document.getElementById('ShopifyEmbedScript') || document.write('<script type="text/javascript" src="https://widgets.shopifyapps.com/assets/widgets/embed/client.js" id="ShopifyEmbedScript"><\/script>');
</script>
And a sample product (buy button) looks like this:
<div data-embed_type="product" data-shop="faircrochet.myshopify.com" data-product_name="Crochet Baby Bobble Travel Blanket; White, Pink and Blue" data-product_handle="crochet-baby-blanket-multi-colour-very-soft" data-has_image="true" data-display_size="compact" data-redirect_to="cart" data-buy_button_text="Add to cart" data-button_background_color="7db461" data-button_text_color="ffffff" data-background_color="ffffff"></div>
<script type="text/javascript">
document.getElementById('ShopifyEmbedScript') || document.write('<script type="text/javascript" src="https://widgets.shopifyapps.com/assets/widgets/embed/client.js" id="ShopifyEmbedScript"><\/script>');
</script>
<noscript><a href="https://faircrochet.myshopify.com/cart/9522024387:1" target="_blank">Buy Crochet Baby Bobble Travel Blanket; White, Pink and Blue</a></noscript>
Thanks for any advice.
Jennifer
]]>