I need someone to help me with a code that I can use to make a time frame for my bestseller collection on Shopify. Normally, the bestseller automated collection covers all time, but I need it to just cover the best selling products in 30days.
In your Liquid, whenever you render that collection, you have access to all the products currently in the collection. Examine each product. Assuming you somehow have access to a date assigned to the product resource that helps you, you could hide products in the Best Seller list that do not qualify to be shown. That is probably the easiest route you have. Just like hiding search results you don't like, or hiding products that are out of stock, you use Liquid in decide if a product in the Best Seller listing is shown or not.
Related
Good day kind crew. I haBe a issue. what I am trying to do is this: a tennis league with 5 divisions. These 5 divisions are located in everytown and those towns in states. I am using ACF and pods. On the state archive page. We would like to choose the state and then on the specific state page we would see the divisions terms. And when you click the division you see all post from that tterm. We have a custom template for the taxonomy but want to limit how many template pages we need to create. If we go with categories than we have to make a custom template for every town/division. Any suggestions on best logic for this making it easy to use on front end without losing admin organization. We set up category hiearcy but we're looking for a better way because we need to allow for user to fill out form and populate post. At this point we have decided to use categories unless someone has another option. Categories just feel sloppy on admin side with children. Thanks for your time.
I'm not sure I understand the question, and thus am not sure I'm on the right track with this answer.
I think you're looking for towns/divisions to have content that can be customized by users. There may be a more WP specific way to do this, but a simple way would be to have a db table with these elements associated with the post id, for example post_id, town_desc, town_mascot, etc. Then, in the WP template, run a query to see if custom elements exist. If not, echo some default text, otherwise echo the custom element text from the db. I think I'd also have the default text be different based upon the level, i.e. with states, divisions, and towns all different based on their level.
Your answer might lie in simply working with custom fields, perhaps with
https://wordpress.org/support/article/custom-fields/
How can we show different day wise different collections on shopify single product page.
If any one know solutions for this then please update me.
Thanks,
Ketan.
You need to go for the private app in that app we can show the day wise different collections using the Tag
I was wondering if it where possible to allow users to fill in product meta using an input fields on the products page. The values of these input fields only have to be saved in that specific order.
I started using product attributes but I couldnt find a way of saving the inputs to the attributes, without affecting the global attributes of that product.
Currently i've created post meta fields, but I'm still stuck at the process of saving these values to the current order.
Any ideas anyone?
I recommend you use this plugin https://wordpress.org/plugins/wc-fields-factory/
It does what you are asking for.
If you are more inclined to write your own code, then take a look at this answer from a year ago https://stackoverflow.com/a/27443698/1456997
Can a particular category be hidden from an individual affiliate. Say for instance the affiliate would like not to have "pet food" show up when his link is used??
Absolutely, but it's going to require customization that's specific to your navigation xml package and requirements.
The easiest way would be to hide the category from the menus in the xml package you use for navigation based on the current users affiliate.
However, 'hidden' could mean quite a bit more than that. If you need to hide the products in that category all together (for example from a users search), you'll need to do quite a bit more customization including the GetProducts stored procedure.
I hid my my categories by adding an "IsHidden" column to the Category table. Then added "AND IsHidden = 0" to the following stored procedures:
aspdnsf_EntityMgr
aspdnsf_SearchCategories
I am looking for a way to share properties over different products which belong to the same category.
Let me explain:
I have a couple of products which share the same properties, but the color. To avoid entering data over and over, I'd like to add common properties to their category and show these properties as a part of the product-details.
Example:
Let's say I have 'wireless headphones': They have different colors, sizes, etc... but they also share lots of identical properties. They're not product variations, but different products of the same kind.
Is there a way to add common properties of this category (e.g. 'stereo', 'wireless', 'frequency') to a single-product page?
Right now I am loading this data via Javascript from a .html template after the browser loaded the product. Works fine, but I guess there must be a better way, so I can handle these properties from within WooCommerce.
Any info/hint/pointer appreciated
This is what Attributes are used for. Once you have your Attributes setup when you go into a product you can add the attribute that you are looking. This video should help https://www.youtube.com/watch?v=7PX8MWBOAeo