Page 48 of 74 FirstFirst ... 38464748495058 ... LastLast
Results 471 to 480 of 740
  1. #471
    Join Date
    Jun 2009
    Posts
    24
    Plugin Contributions
    0

    Default 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

  2. #472
    Join Date
    Sep 2009
    Location
    California
    Posts
    148
    Plugin Contributions
    0

    Default 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.)

  3. #473
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Auction Product Type

    Quote Originally Posted by legacy2009 View Post
    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.
    Code:
    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.
    Dave
    Always forward thinking... Lost my mind!

  4. #474
    Join Date
    Sep 2009
    Location
    California
    Posts
    148
    Plugin Contributions
    0

    Default 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.
    Last edited by Fez-o Joe; 24 Feb 2010 at 04:32 AM.

  5. #475
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Auction Product Type

    Quote Originally Posted by Fez-o Joe View Post
    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 )
    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.
    Dave
    Always forward thinking... Lost my mind!

  6. #476
    Join Date
    Sep 2009
    Location
    California
    Posts
    148
    Plugin Contributions
    0

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

  7. #477
    Join Date
    Sep 2009
    Location
    California
    Posts
    148
    Plugin Contributions
    0

    Idea or Suggestion Re: Auction Product Type

    Quote Originally Posted by Fez-o Joe View Post

    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 think 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.

    Here's those lines from my php:

    ------------------------
    <div class="productAuction biggerText">
    <?php echo BUY_NOW_PRICE; ?>&nbsp;&nbsp;
    <?php echo $currencies->display_price($products_buynow_price,
    zen_get_tax_rate($product_info->fields['products_tax_class_id']));
    ?>
    &nbsp;
    <?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']) : '&nbsp;'); ?>
    <?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!

  8. #478
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Auction Product Type

    Quote Originally Posted by Fez-o Joe View Post
    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
    Code:
    $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.
    Dave
    Always forward thinking... Lost my mind!

  9. #479
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Auction Product Type

    Quote Originally Posted by Fez-o Joe View Post
    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.
    Code:
    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....
    Dave
    Always forward thinking... Lost my mind!

  10. #480
    Join Date
    Sep 2009
    Location
    California
    Posts
    148
    Plugin Contributions
    0

    Default 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?

 

 
Page 48 of 74 FirstFirst ... 38464748495058 ... LastLast

Similar Threads

  1. Auction Product type
    By Andreas1211 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 14 Aug 2014, 02:13 PM
  2. Auction Product Type: Can't add a product of the type.
    By sw0rdz in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 5 Sep 2009, 02:11 AM
  3. Auction Product Type
    By chinthana in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 18 Jun 2009, 10:33 AM
  4. Auction Mod. Product Type
    By wilt in forum All Other Contributions/Addons
    Replies: 5
    Last Post: 15 Feb 2007, 07:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR