![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Hi,
Is it possible to create a version of the 2/3 product sidebar directly into a template in a way that does not rely on widgets being created and referenced? I'd like to be able to hardcode the DFR sidebar into a theme so that it appears whenever DFR is installed and there are products in the store, irrespective of the store's widgets. If this is possible where the best place to look to learn how it's done? Ideally I'd like to be able to control the various display options and so on direct from the code i put in the template I think there was a short code equivalent in the old DFR but ideally I'd like a line by line version with the <h> tags and button code and the rest in it: dfr_product_block('order_by=views&display_details_ button=0&display_description=0&display_price=0&pro ducts_per_block=3'); Thank in advance if anyone can help with this? Ty |
#2
|
||||
|
||||
![]() Hi
You always have to reference a View in the Factory. The only way to get around that is by writing your own PHP function which queries the DB. If you are OK with creating a new View in the Factory, then you can use these shortcodes to call it directly from your WP template files: http://www.datafeedr.com/docs/item/185 Eric
__________________
![]() ![]() ![]() ![]() |
#3
|
|||
|
|||
![]() Thanks!
If there a DFR PHP function listed anywhere that I could use as a starting point to going in the right direction? I'd really like to avoid making loads of identical widgets in the factory! Regards |
#4
|
||||
|
||||
![]() Hi
The only function that's available is at the bottom of the Docs page I linked to above. As for making identical widgets, you can now duplicate widgets if that helps. But I think you'll probably need to write your own query to satisfy your needs. Eric
__________________
![]() ![]() ![]() ![]() |
#5
|
|||
|
|||
![]() Quote:
Ty |
#6
|
||||
|
||||
![]() Um... that's not possible.
__________________
![]() ![]() ![]() ![]() |
#7
|
|||
|
|||
![]() Oh right. I'm not sure now being able to duplicate widgets would help if I'm adding a new widget to all my sites then?
Are there any plans to be able to cut and paste categories / product lists / widgets from store to store? It'd be extremely useful in terms of time savings for developing new sites and features. |
#8
|
|||
|
|||
![]() Quote:
Thanks |
#9
|
||||
|
||||
![]() Quote:
Quote:
Eric
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
coupon code in product details page | jcvm27 | Problems | 5 | January 10th, 2012 01:17 PM |
Create 'Single Product' sidebar widget | dynamicweb | Questions | 11 | July 27th, 2011 04:48 PM |
Associate one coupon code with one merchant on a product page | cashnow | Questions | 2 | January 20th, 2011 10:59 PM |