Skip Navigation

[Resolved] frontend wocommerce new product submitting form

This support ticket is created 7 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#464744

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,

#464881

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

#465170

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,

#465171

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!!!

#465245

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/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.