Zen Cart Logo
Forums / All Other Contributions/Addons / Auction Product Type

Auction Product Type

Views: 176,935

Results 461 to 480 of 740
19 Feb 2010, 6:02 AM
#461
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Auction Product Type

legacy2009:

I'm using the zj Black Template, perhaps it is the problem, I'm on ZC 1.3.8 and I did the sql update, added the files including the 2 overwrite files after I made dup's of the originals.

I seem to be having some kind of layout or template problem, here is a text auction page I setup, anyone else run into this same problem?
Looks like your missing some of the language files.. far as layout, looks about right... The page was setup for the default zen template. If you need something different, then you'll have to change some of the css files to match your site colors and what not.

20 Feb 2010, 3:19 AM
#462
legacy2009 avatar

legacy2009

New Zenner

Join Date:
Jun 2009
Posts:
24
Plugin Contributions:
0

Re: Auction Product Type

Thanks, I'll check the language files and see if that resolves things tomorrow.

Curt

20 Feb 2010, 3:59 PM
#463
legacy2009 avatar

legacy2009

New Zenner

Join Date:
Jun 2009
Posts:
24
Plugin Contributions:
0

Re: Auction Product Type

Looks like I've got the layout and text issues all fixed.

I'm having a 404 page not found error when you click on "Ask a Question" link (looks like I just need to fix the graphic for the link which is no big dea)l, but my main concern is that the ask a question section isn't working, anyone have this problem and have a solution?

Curt

20 Feb 2010, 10:45 PM
#464
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Auction Product Type

legacy2009:

Looks like I've got the layout and text issues all fixed.

I'm having a 404 page not found error when you click on "Ask a Question" link (looks like I just need to fix the graphic for the link which is no big dea)l, but my main concern is that the ask a question section isn't working, anyone have this problem and have a solution?

Curt

You can find the ask a question mod in the free addon section of this site.... it's not part of the auction mod.

23 Feb 2010, 7:25 AM
#466
legacy2009 avatar

legacy2009

New Zenner

Join Date:
Jun 2009
Posts:
24
Plugin Contributions:
0

Re: Auction Product Type

I tired 1.0a and nothing would appear when an auction item was selected, I got an empty blank template. I uninstalled the sql and installed the standard 1.0 sql and setup a new auction and it was back and working. Still doesn't have a proper button for Ask a Question and the Ask a Question link is still going to a 404 page.

Curt

23 Feb 2010, 7:46 AM
#467
legacy2009 avatar

legacy2009

New Zenner

Join Date:
Jun 2009
Posts:
24
Plugin Contributions:
0

Re: Auction Product Type

@ Dave West ---

Got it Dave, I installed the Ask a Question module, updated the button and all looks like its working fine. I am just having some minor issues with Auction Configuration missing from the Admin menu which I think I know the problem and its also affecting that my test auction isn't showing a Buy It Now Button, so I think I'll uninstall completely one last time and reinstall and I think everything should be okay. Thanks.

Curt

23 Feb 2010, 9:47 AM
#468
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: Auction Product Type

I'm getting the 1062 dup key 2 error as well from a clean install on 1.3.8.a using the SQL updater - first time went fine, but no auction items would show up... just a blank center of the page. After the uninstall, nothing but errors.

Two typos so far - one is the Tool - it should read 'Change to Auction'

and the other is in admin/includes/english/auctions_manager.php - line 35. should be ' service '

That's it so far - any help would be great. I'm heading off to Nod, will most likely restore the store and try again in the morning.

23 Feb 2010, 6:09 PM
#469
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: Auction Product Type

The 'Auctiom' typo is in the admin/convert_type.php - line 121

Still can't get anything to show on pages...

23 Feb 2010, 7:03 PM
#470
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: Auction Product Type

Just an aside...

in the includes/modules/sideboxes/YOUR/information.php

There's a line ( 26-28) that states that you should be able to control the showing of the 'Auction Information' line on the sideboxes... the control for it does not appear anywhere, nor in the logical spot - Define Page Status. Did they put it somewhere else?!?

(and yes... it's in the correct template sub-dirs :P )

24 Feb 2010, 12:11 AM
#471
legacy2009 avatar

legacy2009

New Zenner

Join Date:
Jun 2009
Posts:
24
Plugin Contributions:
0

Re: Auction Product Type

The Pop-up Help Window, anyone know how I can change its pop-up size? I also need to change the CSS settings and make the text White as its on a black background.

Can anyone point me in the right direction please, thanks.

Curt

24 Feb 2010, 2:08 AM
#472
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: Auction Product Type

Well, I know the CSS file is in: includes\templates\YOUR_TEMPLATE\css

As far as the pop-up... there's a pop-up ?!? (still can't get the ruddy thing to work on my site... yet.)

24 Feb 2010, 2:43 AM
#473
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Auction Product Type

legacy2009:

The Pop-up Help Window, anyone know how I can change its pop-up size? I also need to change the CSS settings and make the text White as its on a black background.

Can anyone point me in the right direction please, thanks.

Curt

Found that one the other day... I've been reworking the code, as I do, I find things I missed or didn't write that needed worked on...
in includes\modules\pages\product_auction_info\jscript_main.php

change the first script as below or just the width and height as needed.

function popupWindow(url) {
  window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,width=450,height=320,screenX=150,screenY=150,top=150,left=150')
}
```also changing scrollbars to yes helps.
24 Feb 2010, 3:19 AM
#474
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: Auction Product Type

Ok - after running the 'Find the Error' php - here's the line:

[23-Feb-2010 19:01:15] PHP Parse error: syntax error, unexpected '<' in //includes/templates/retrofez/templates/tpl_product_auction_info_display.php on line 129

and the code from that area... 124 - 129

<?php /** * display the products additional images */ require($template->get_template_dir('/tpl_modules_additional_images.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_additional_images.php'); <!--eof Additional Product Images --> OK - I added a close to the php and it's working - maybe something in the download?!? I swear I didn't edit the php before this! And, thanks for that pop-up solution - that's next! Now... to reformat and edit the layout to work with the site.
24 Feb 2010, 3:44 AM
#475
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Auction Product Type

Fez-o Joe:

Just an aside...

in the includes/modules/sideboxes/YOUR/information.php

There's a line ( 26-28) that states that you should be able to control the showing of the 'Auction Information' line on the sideboxes... the control for it does not appear anywhere, nor in the logical spot - Define Page Status. Did they put it somewhere else?!?

(and yes... it's in the correct template sub-dirs :P )

I probably I missed the sql statement.... should of been in the auction manager config... something I stop using after installing the faq manager.

I grab the files from my site, convert them to the basic cart template, then package into a upload set. then I test the install. In coding out my template it's getting harder to make it work on a basic install and I do miss some things.

As for the auction not showing.... if you already have a product listed and want to convert it to an auction item, I copy the product to my auction category, then use the convert type, after converted, you need to edit the product to set the ending date, and what not, then activate it.
Can you edit the product?
If you can and it's not showing after editing it, then something in the template pages is missing.

24 Feb 2010, 4:17 AM
#476
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: Auction Product Type

So - the answer there is to make an entry for the zen_auctions SQL at the bottom of the Auction Manager, right? I can dupe from example, but I haven't come across one that sets up the radio buttons with the four choices akin to the Define Pages ... any hints before I start trudging through the php muck from other add-ons. :)

Thanks Dave for pointing in directions!

24 Feb 2010, 8:36 AM
#477
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: Auction Product Type

Fez-o Joe:

Thanks Dave for pointing in directions!

OK Dave (and everyone else...) this will flip your noodle:

In reference to the other person with the Buy Now != buy now price when going into the shopping cart - I get it as well, and here's some interesting field data for ya...

DB fields
products.products_price = 42.00

auction_extra.bid_buynow_price = 500.00

auctions.customer_ bid = 41.50 (manually changed in phpadmin - just to see what it would show.)

So... on the auction page, it shows the current bid of $41.50 - the buy it now shows the $500, and yet when I click the buy now button - it takes me to the shopping cart where the item is $42.00

I t*hink* it has to do with the first FORM in tpl_product_auction_info_display.php going to the cart with the product_id of the product, and not picking up the the updated input fields. (near lines 180-193)

That make sense? hope it helps... my eyes are going buggy trying to decode this. :shocking:

Here's those lines from my php:


<div class="productAuction biggerText">

<?php echo BUY_NOW_PRICE; ?>   <?php echo $currencies->display_price($products_buynow_price, zen_get_tax_rate($product_info->fields['products_tax_class_id'])); ?>

 

<?php echo ((SHOW_PRODUCT_INFO_IN_CART_QTY == '1' and $_SESSION['cart']->in_cart($_GET['products_id'])) ? PRODUCTS_ORDER_QTY_TEXT_IN_CART . $_SESSION['cart']->get_quantity($_GET['products_id']) : ' '); ?> <?php if ($products_qty_box_status == '0' or $products_quantity_order_max== '1') { // hide the quantity box and default to 1 $the_button = '<input type="hidden" name="cart_quantity" value="1" />' . zen_draw_hidden_field('price', $products_buynow_price) . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_AUCTION_BUY_NOW, BUTTON_AUCTION_BUY_NOW_ALT); } else { // show the quantity box $the_button = PRODUCTS_QUANTITY_TO_BUY_NOW . '<input type="text" name="cart_quantity" value="' . (zen_get_buy_now_qty($_GET['products_id'])) . '" maxlength="6" size="4" /><br>' . zen_draw_hidden_field('price', $products_buynow_price) . zen_get_products_quantity_min_units_display((int)$_GET['products_id']) . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit(BUTTON_IMAGE_AUCTION_BUY_NOW, BUTTON_AUCTION_BUY_NOW_ALT); } ?> <br/> <?php echo zen_get_buy_now_button_auction($_GET['products_id'], $the_button); ?> --------------------------------

Good luck!

25 Feb 2010, 3:09 AM
#478
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Auction Product Type

Fez-o Joe:

OK Dave (and everyone else...) this will flip your noodle:
Remember that tpl_ pages deal mostly with display and a little bit of coding. the main work horse is the header and main variable files. includes\pages\ PAGEID

I just rechecked the includes\modules\pages\product_auction_info\main_template_vars.php in my upload... for this line

$products_buynow_price = $product_info->fields['bid_buynow_price'];
``` this line sets the buy-now price.  If this line is changed or the sql statement is missing pae.bid_buynow_price then it will be massed up.... another possibility is the currency.  I only tested in US dollars, tax and such.... but checking both catalog and admin, the buy-now price looks right to me and is working in my tests!

What happens in the logic is the product price starts out as the 'start-price', a high bid replaces the product price and keeps going until the date and time ends.  The buynow price jumps in when click on and goes through the zencart default buynow system.... not the auction code.  If checkout completes, the auction closes at the buynow price and replaces the product price for tracking..  If thy delete the item out of there shopping cart... the last bid is still in place as the current product price.

Another thought... is your buynow turned on for the site!  mine is set to 1300 in layout... the cart buynow... not just the auction one.
25 Feb 2010, 3:25 AM
#479
davewest avatar

davewest

Totally Zenned

Join Date:
Dec 2007
Location:
Payson, AZ
Posts:
1,075
Plugin Contributions:
7

Re: Auction Product Type

Fez-o Joe:

So - the answer there is to make an entry for the zen_auctions SQL at the bottom of the Auction Manager, right? I can dupe from example, but I haven't come across one that sets up the radio buttons with the four choices akin to the Define Pages ... any hints before I start trudging through the php muck from other add-ons. :)

Thanks Dave for pointing in directions!

Basically.. you can have the link for help anywhere you wish using the EZ-Pages linkage. I just laid out some sample ideas, some of which I use on my own site.... The switch is nice touch, but not relay needed. I'll add it to the sql. This will put the switch into the auction manger.

SET @t4=0;
SELECT (@t4:=configuration_group_id) as t4 
FROM configuration_group
WHERE configuration_group_title= 'Auction Manager';
INSERT INTO configuration VALUES ('', 'Display information link on the side box!', 'DEFINE_AUCTION_STATUS', '1', 'Turn on or off the side box information link for Auction Help.', @t4, 9, now(), now(), NULL, 'zen_cfg_select_drop_down(array(array(''id''=>''1'', ''text''=>''True''), array(''id''=>''0'', ''text''=>''False'')),'); 
```Default is true....
25 Feb 2010, 9:14 AM
#480
fez_o_joe avatar

fez_o_joe

Zen Follower

Join Date:
Sep 2009
Location:
California
Posts:
141
Plugin Contributions:
0

Re: Auction Product Type

Thanks for the Switch code...

Let's say we're looking in the wrong place, perhaps its in the 'shopping_cart' - using the line of logic that says it's got to be on the page that is being listed.

The lines 1572-1579 for me read as:


if (isset($_GET['mod']) && $_GET['mod'] == 'auction') {
$new_products_price = zen_db_prepare_input($_POST['price']);
$sql = "select products_price from " . TABLE_PRODUCTS . " where products_id = " . (int)$_POST['products_id'];
$result = $db->execute($sql);
$old_price = $result->fields['products_price'];
$sql = "update " . TABLE_PRODUCTS . " set products_price = " . zen_db_input($new_products_price) . " where products_id = " . (int)$_POST['products_id'];
$db->execute($sql);
$sql = "update " . TABLE_PRODUCT_AUCTION_EXTRA . " set bid_buynow_price = " . zen_db_input($new_products_price) . " where products_id = " . (int)$_POST['products_id'];

That the same for yours?