Please advise for that scenario: In Classified reference sample:
- Contributors of the site will pay for submitting their ads using CRED (Which works great).
INEED:
- When a visitor of the site wants to buy that Item, He's clicks a (BUY) button and pay the price in the custom post type field. (it's not a product created in woo commerce products list).
Any recommendation to achieve it using relations between add to cart button and that custom field in the custom post type?
Thank you,
Dear Ahmed,
Are we talking about this:
The "visitor" click the "BUY" button, you are going to create a new product automatically for the visitor.
Unfortunately, there isn't such a built-in feature, I suggest you try with Woocommerce built-in function, for example this thread:
http://stackoverflow.com/questions/11503646/woocommerce-create-product-by-code
Hope it help
Thank you Luo Yang for reply,
I still haven't found a detailed guide for your recommendation.
AS A WORK AROUND, I could find a plugin called "WP Simple Paypal Shopping cart" that I can use a paypal button shortcode in my page.
I tried it in the RealEstate reference site just below the agent condition in the single property page VIEW.
1) Now the problem is, I can't have the price update to mach the real actual price of the different properties views.
2) is there anyway to do some calculations in views?
Thank you,
If I can create a simple generic woocommerce product that can get the price passed from custom post types Fields [PRICE], INSTEAD OF creating new products for all the needed custom post types/
Just wondering!!!
Q1) Now the problem is, I can't have the price update to mach the real actual price of the different properties views.
Views is for displaying the data, it can not modify the product's price
Q2) is there anyway to do some calculations in views?
You can create some custom shortcode to do the calculations, for example, this thread:
https://toolset.com/forums/topic/fields-calculation/#post-461003
Q3) If I can create a simple generic woocommerce product that can get the price passed from custom post types Fields [PRICE], INSTEAD OF creating new products for all the needed custom post types
Yes, think it is a good way, just need to modify the price of product, you do not need to create new product, for example:
http://wordpress.stackexchange.com/questions/111772/changing-woocommerce-display-price-based-on-user-role-category
Since it is out the range of Toolset, and it needs custom codes, I suggest you check out our certified partners for it:
https://toolset.com/consultant/