-
AuthorPosts
-
January 20, 2014 at 9:12 pm #212425
See this image: http://img42.com/F2IvZ
Which php page and section assembles the content seem on the image?
The product and tabs.I can’t find it.
Thanks!!!!January 20, 2014 at 9:17 pm #212428Hi jdrijver!
Please go to wp-content\plugins\woocommerce\templates\single-product\tabs folder and you will find related files inside it
Cheers!
YigitJanuary 20, 2014 at 9:51 pm #212445Thanks!!!!
Is there a way to modify that page a bit so i can copy it and access it directly? So i can view the product and its details alone?January 21, 2014 at 8:40 am #212653Hi!
Yes and no. WooCommerce is what builds all of the store, products, checkout etc. The theme really only styles the plugins output.
The single product page has a few extra wrappers and things added to it with code in the config-woocommerce/config.php file but WooCommerce also supports using template files: http://docs.woothemes.com/document/template-structure/
There isn’t an individual page for each product however so if you were thinking of modifying individual product pages that is not really doable.
Regards,
DevinJanuary 21, 2014 at 2:48 pm #212791Thanks for you reply!
I wasn’t planning on modifying individual product pages, i would like to copy the code that loads/shows a individual product:
– picture
– description
– tabs
and use this code in a plug-in (events-calendar-pro), as this plug-in doesn’t show the product as nice as this theme does.Do you think this is doable?
January 21, 2014 at 8:54 pm #212949You’ll need to look in the config.php file in that case. There are individual wrappers for the different sections that you could use to wrap the events calendar template elements as needed.
January 22, 2014 at 5:45 pm #213436Great!
I see many config.php files.
Could you specify a folder?
Thanks!January 22, 2014 at 5:49 pm #213437I may be asking to much, but could you maybe please also specify a section / row number or something?
January 23, 2014 at 5:28 pm #213972All of the code is in the config-woocommerce/config.php .
Its the entire file which styles and adds the wrappers needed for WooCommerce pages but there is inline commenting throughout for what is adding content to where. Specifically starting at line 485 the main wrappers start getting added in.
Thinking about it again, you could also view the source of a single product page and get the class names and html structure from that and then use it as a model to create your own template without as much of the dynamic configuration the single product pages use.
-
AuthorPosts
- The topic ‘Which page is responsible for the product section?’ is closed to new replies.