yanickc
Forum Replies Created
-
Hi there Kubiq,
Apologies for the confusion earlier, I meant posts.
Here are the steps I take to duplicate a post:
1. Create the post in the default language (French).
2. Add the PDF in the WordPress edit screen using the ACF field “File” and click save. The preview for that PDF works perfectly.
3. Check the “Duplicate” box (WPML). You can see it here: https://cln.sh/dxfX4jLM
4. Navigate to the secondary language where I duplicated the post (English) and click “translate independently.” You can see it here: https://cln.sh/wr0KDWtz
5. Change the title and hit save.The issue arises when the PDF thumbnail does not regenerate for the duplicated post. If I delete the PDF and add a new one, the thumbnail appears correctly. However, if I don’t, your plugin doesn’t regenerate the thumbnail since it was already generated for the main language (French). Visually, the thumbnail appears as a broken link.
The only way I can resolve this is by going to your plugin settings and clicking “Generate Missing PDF Thumbnails” or removing the PDF and adding it again. This process is not ideal or optimal for my client.
Hopefully, this explanation is clearer. I really appreciate your help on this.
Cheers,
HI Zubair,
Thank you for your response. I appreciate the suggestion of hiring a professional developer, but I am currently looking to tackle this myself through custom coding. I’m looking for technical input or guidance on the approach I have in mind. As a quick note, the SKUs aren’t visible in the frontend and they don’t change the price.
To give you a real example with actual quantities and threshold numbers, here’s a quick rundown with fictitious products:
Product 1 – Fruit Juice
Variations and SKUs:- Apple (SKU: 2222)
- Grape (SKU: 3333)
- Orange (SKU: 4444)
Quantity Threshold: 12 (for a box of 12)
Bundle SKUs:- Apple (Bundle SKU: 5555)
- Grape (Bundle SKU: 8888)
- Orange (Bundle SKU: 9999)
Product 2 – T-Shirts
Variations and SKUs:- Small (SKU: 1111)
- Medium (SKU: 5555)
- Large (SKU: 1010)
Quantity Threshold: 6 (for a box of 6)
Bundle SKUs:- Small (Bundle SKU: 2020)
- Medium (Bundle SKU: 3030)
- Large (Bundle SKU: 4040)
With this setup, my approach so far includes:
- Metadata Field Creation: Add a metadata field for each product variation to store the quantity threshold and the corresponding bundle SKU. I plan to use the
woocommerce_variation_options_pricing
hook to integrate custom fields in the product variation pricing section. - Cart Validation Hook: Implement the
woocommerce_add_to_cart_validation
hook to monitor the quantities of each variant added to the cart. If the quantity reaches the specified threshold, I intend to trigger an update in the SKU. - Cart Totals Calculation Hook: In the
woocommerce_before_calculate_totals
hook, I’ll access the cart items to check if the quantity of any variant has hit its threshold. Upon this condition, I’ll update the SKU to reflect the bundle SKU. - Handling In-Between Thresholds: For scenarios where cart quantities are in between thresholds, I plan to dynamically track the remaining quantity needed to reach the next threshold for each variant. This will involve adjusting the SKUs in the cart as items are added or removed. Input on this?
The primary goal behind this implementation is to streamline the order fulfillment process. For instance, instead of the warehouse staff having to scan each of the 48 individual products manually, they would see the “box of 12” SKU and only need to scan it 4 times. This approach not only makes the fulfillment process simpler but also significantly reduces the potential for errors. It’s a practical solution aimed at improving efficiency and accuracy in the handling and scanning of products.
I would greatly appreciate your thoughts or insights (both general and technical) on this approach, especially considering the operational benefits it aims to achieve. Are there any potential pitfalls or WooCommerce peculiarities I should be aware of?
Thanks in advance for your help!
Thanks!
Sounds good. I thought the behaviour was coming from your plugin. I’ll add the necessary code on my end.
Thanks for your time!
YanForum: Plugins
In reply to: [Drag and Drop Multiple File Upload for Contact Form 7] Translate word OFIt worked! Thanks a lot.
– Yan- This reply was modified 3 years, 6 months ago by yanickc.
Forum: Plugins
In reply to: [Contact Form 7 Connector] Not viewing all groupsThanks for your help @altruistas
I can confirm this worked for me too.
Hopefully @arisoft can fix this in a future update.
Thanks!
YanForum: Plugins
In reply to: [Contact Form 7 Connector] Not viewing all groupsYup!
Can you tell me what file and line needs to be changed? Any idea why they are limiting the number?
Thanks,
Yan- This reply was modified 3 years, 11 months ago by tobifjellner (Tor-Bjorn “Tobi” Fjellner).
- This reply was modified 3 years, 11 months ago by yanickc.
- This reply was modified 3 years, 11 months ago by yanickc.
Forum: Plugins
In reply to: [Contact Form 7 Connector] Not viewing all groups@altruistas how do I remove the limit for the amount of subscriber lists to display? I’m having the same issue on my end.
Thanks in advance,
YanForum: Plugins
In reply to: [Yoast SEO] Disable twitter:label1 and twitter:data1 metaThis worked. Thanks a lot!
Thanks for the reply @mohitmishra
I actually found the solution.
Here it is in case someone else might need it:
You can create an add to cart link for a specific subscription plan of a product by adding the convert_to_sub_ + product_id parameters on your product link.
For example, for a product with the ID 256 that has a subscription plan for 1_month, the URL would be: https://domain.com/product_name?add-to-cart=256&convert_to_sub_256=1_month. You can replace the id and the subscription plan in this link to create similar links for any other products.
Note that you can also find the 2nd parameter using your browser’s inspector in the radio buttons of the subscription plans.
Alternatively, if you’d like to use PHP code to achieve what you’d like, then you can use the WCS_ATT_Cart::apply_subscription_schemes function.
Hopefully this can be helpful to anyone with the same question.