Latest Forum Posts
Home arrow Forum
Design Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Product Type mods in category fly page (0 viewing) 
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Product Type mods in category fly page

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1295
PhoenixGB (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Product Type mods in category fly page 4 Years ago  
Hi All

Is it possible to have the product types showing on the category flypage? (browse_1.php), i would like to add one next to the short description field.

TIA

Kev
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1377
peleroy (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 12 Months ago  
In a similar way like the product detail level :

Modify shop.browse.php :

Add at the beginning :
require_once(CLASSPATH . 'ps_product_type.php' );
$ps_product_type = new ps_product_type;


After for instance
$product_cell = str_replace( "{product_sku}", $db_browse->f("product_sku"), $product_cell );

add :
$product_type = array();
$product_type = $ps_product_type->list_product_type($db_browse->f("product_id"));
if(is_array($product_type)) {
foreach($product_type as $p_type => $key) {
$product_cell = str_replace( "{".$p_type."}",$key,$product_cell);
}
}

It's done
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1676
chammers (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 9 Months ago  
Hi all,

I implemented this code and it works - calling the product type icons successfully on the browse_1.php page. I've also included a conditional statement that shows the product types if they exist, and hides the <div> if they don't.

I am having a problem with the display, though. Here are two of the problems I'm having with my 3-column template (based on JA_Mercury):

1. Right column gets pushed completely down beneath all search results
2. Results list width gets progressively narrower as you scroll down the page

I'm working this on a development site before I port over my changes to my live environment. If anyone has an idea, I'd be happy to share the site via email.

Thanks in advance!
Hammer
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1684
chammers (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 9 Months ago  
Nevermind. I had an errant <div> tag floating around at the top which was throwing everything out of wack.

Does anyone have a good tool to use to check <div> formatting to easily identify these type of problems? I end up spending way too much time with the trial-and-error method

Thanks,
Hammer
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1866
korb (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 6 Months ago  
Hi all,

@chammers please paste your code that hides the div if there is no product type in the category.

@all
Please read this VM tracker. I realy want this modification to be applied for the next VM 1.1.2 release. Anyone has an idea to do modify peleroy's code to do that?

Thank you for any reply
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1868
chammers (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 6 Months ago  
@korb - turns out my conditional to hide the <div> tag didn't work.

My columns were being thrown out of whack if I had a product that DIDN'T have a product type assigned to it. I had to go in and assign all my products a product type for my columns to show up and align properly.

This wasn't a big deal for me, as all my products can be said to either have or not have a product type, but it could cause problems for others I guess.

Sorry I couldn't be of more help.

-chammers
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1869
korb (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 6 Months ago  
Thanks for this reply chammers.

Maybe you have an idea bout my FRQ in VM tracker?
Thanks again
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1870
korb (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 6 Months ago  
Please explain what this modification is does?
It detects if there are product types in a certain category and displays a link for advanced search parameter form for every product type?

If yes, (we asume that we have a single product type assigned to all product in a category) it is possible to show directly the parameter search form?

Thank you
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1871
chammers (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 6 Months ago  
@korb - this mod lets you display the product type icons next to your product in the browse page; at least, that's how I'm using it.

I believe the functionality for advanced search by product type isn't dependent on this mod; it already exists within VM if you use product types.

And I don't have an answer to your other question about directly accessing the parameter search form, which sounds different from the product type search form. I never had much success with the advanced product type search form myself.

Btw - I'm using VM1.0.13 & J!1.0.12

Hope someone out there can help!

-chammers
 
  The administrator has disabled public write access.

Warning: array_merge() [function.array-merge]: Argument #1 is not an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 653

Warning: array_walk() [function.array-walk]: The argument should be an array in /home/markfco/public_html/design/components/com_fireboard/class.fireboard.php on line 656
#1872
korb (User)
Fresh Boarder
Posts: 7
graphgraph
User Offline Click here to see the profile of this user
Re:Product Type mods in category fly page 3 Years, 6 Months ago  
This means I have to start a new topic. I understood wrong . I thought my strugle is over.
 
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop