How to get option set rules in Bigcommerce - rules

I want to create or update a Products using Option sets through API. When i adding the rules for Option set in Big commerce Site, how do get these option set rules through API?
Thanks in Advance.

Unfortunately there is not a way to access option set rules through the API with Bigcommerce. However, you can simply run a script that gets each product with that option set applied to it and then iterate through those products to set the same rules on each one!

Related

Getting issue in attributes after fetching from amazon to WordPress using API

I am trying to fetch products from Amazon to WordPress using API and the products are successfully fetched but the issue comes in attributes. I have to save every product individually after that the attributes change into global attributes and then I can see them on frontend filters. I tried to resolve the issue using crone job but it's also not working for me. Here is a plugin https://appsaloon.be/ which converts the custom attributes to global but we have to run the script manually and I am looking for something that work automatically. Is their any other alternate solution to this issue where all the attributes automatically change into global attribute when I fetch the product. I would appreciate your help.
Thank you

Handlebars on Cart.html

Is there any way to access a product with variations/options individual weight?
Currently have an old script pulling a basic product (no variations/options) through custom fields. Now I have products with variations all with different weights, so the custom fields solution no longer works...
Ideally I want to pull the product options weight to add to my script to total the cart's weight. Tried ?debug=context at the end of a localhost URL and could not find product option weight to be available on the cart page- are there other options to work around this??
I am on BigCommerce Cornerstone theme
From what I understand by reading your post, the best way to accomplish your goal will be with the storefront GraphQL API. Using GraphQL you can query each product in the cart and include the variant data with the weight. This will allow you to get the weight for all of the variants in the order and add them up to get the total.
I'd definitely suggest checking out the BigCommerce GraphQL Documentation for more information, as well as the Code Examples.

How to force addition of Product B in order to add product A in Drupal 7?

I am looking for an easy way to associate two products with each other on checkout while at the same time forcing the user to create the association if it doesn't exist yet. Basically, a user can by hosting, but in order to complete the checkout, they also need a domain name. I have classes for each, but I am trying to think of ways to solve two problems:
On checkout, display that two products are associated
Force the user to create the association
Any ideas on what I can use to do that?
UPDATE
What I did was:
Created two separate products
If you add the one, it does a check to see if this item has been linked to another product
If not, it takes you to a custom page forcing you to add and assign the other product
This works, but it's not very elegant. Any better suggestions would be much appreciated.
Use Rules to display messages to the user. Use the event on "add to cart", check the type of product, then check to see if the associated product is added to the cart, if not show message saying you also need to add a hosting package and auto redirect them there. Then upon checkout, check to see if one of those products exist, does the other exist in the cart? Throw same message and auto redirect them to the missing one.
You may need to use components with your rules to get the full effect. But that is what I would do.

Woocommerce: how can I show only one or more categories to vendors?

I need to set only one or few categories for each vendor (specific user).
Is it possible? Is there any plugin for this?
Generally it's not good form to use Stack Overflow to find stuff. It's better to look yourself and show what you've done and why it's not working.
That said, I would recommend you get a plugin that lets you create additional user roles. Then you would need to use Catalog Visibility Options to change category visibility on a per-role basis (http://docs.woothemes.com/document/catalog-visibility-options/#section-4).

Wordpress Advanced Custom Fields - Limit A User's Choice To One Option

I have a WordPress website and as part of the news items, the editor can add either an:
internal link OR
external link OR
file
Currently I have this set up as a repeater field with maximum rows set to 1.
Is it possible if say one value has been entered, to prevent another of the values from being filled in.
E.g. I add an internal link and then try to add an external link. A message of some sort is then shown to me to say that only one value can be selected at a time.
I know I can add a description to the field with this information but I want to make it idiot proof so that the user can never add more than one value.
Thanks for your time and help in advance.
I can't write this in comments but celeriko right. Install types plugin there is ability of conditional logic. You can very easy implement of from backend.
Types: http://wp-types.com/
Reagrds

Resources