ahnabil
Forum Replies Created
-
Forum: Hacks
In reply to: delete custom post metadataHi steve, sorry for the very late reply, i’m still learning, so any help would be appreciated
regarding your first statement “You haven’t set a value for $object_id, so you’re passing a 0. Object_id does not accept a default value.”
https://hookr.io/4.4/functions/delete_metadata/
it says that “$delete_all — Optional. (constant) => false.
Optional, default is false. If true, delete matching metadata entries for all objects, ignoring the specified object_id. Otherwise, only delete matching metadata entries for the specified object_id”that is why i didn’t provide object_id
also i don’t know how to hook the delete_metadata function.
can you please provide some examples of the usage, i searched a lot and i can’t find it anywhere.
Thanks
Forum: Plugins
In reply to: [WooCommerce] Delete order metadata using actionsprovide example please please ??
Forum: Plugins
In reply to: [CDN Enabler] Exclude specific directoryhello, thanks for the fast reply
i’ve Simple Custom CSS plugins installed
on the page source the link to the custom css is like that
https://website.com/?sccss=1&ver=4.5.3
when cdn is enabled the link becomes
https://cdn.website.com/?sccss=1&ver=4.5.3
the cdn link has no style, the original has the css styles
how can i exclude this plugins/url from cdn?
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Custom post type permalinki though i must loop through all the items in cart, i got it right now, thank you again ??
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Custom post type permalinki spoke too early
all products at the cart are returning the same link what i’m doing wrong??add_filter('woocommerce_cart_item_permalink','listing_peramlink_cart',20,2); function listing_peramlink_cart($product_permalink,$cart_item){ global $woocommerce; foreach ($woocommerce->cart->get_cart() as $cart_item => $value) { $product_permalink = get_permalink($value['product_id'] ); } return $product_permalink; }
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Custom post type permalinki was looking for a post when nothing was returning it ??
Thanks Claudio i was able to get it right
Best regards
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Custom post type permalinkIts the same structure but different name of the cpt, woocommerce have “product” as the main cpt, ive a running system that have another name for the cpt.
What iam trying to do is when at the cart page i want to link the “cpt product name” to its permalink.
Right now i cant click on the product nameForum: Plugins
In reply to: [WooCommerce] Woocommerce Custom post type permalinkYeah i tried, any suggestions?
Forum: Plugins
In reply to: [WooCommerce] Woocommerce Custom post type permalinkit doesn’t have the same link for the product it has its own system with its own permalink
i tried renaming the permalink structure for the CPT to be product, but it didn’t work
i’m using the permalink structure of https://localhost/sample-post/
and a custom slug for the CPTForum: Plugins
In reply to: [WooCommerce] Recalculate all orders total in bulksorry for the very late reply
https://codecanyon.net/item/woocommerce-deposits-partial-payments-plugin/9249233this is the plugin that made the mess, and i’ve tried contacting the seller but he has no clue how to fix this issue.
can you help me in writing a loop that goes on all orders and recalculate the totals, that would be great.
Forum: Plugins
In reply to: [WooCommerce] How to get admin order total value of feehow can i total it myself, can you show me an example please