Thread: Wishlist

Page 18 of 38 FirstFirst ... 8161718192028 ... LastLast
Results 171 to 180 of 378
  1. #171
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Wishlist

    The 'starting at' text is coming from Zen Cart. You would have to use the Developers Toolkit though to find which file contains the text so you can alter/remove it.

  2. #172
    Join Date
    Feb 2011
    Posts
    27
    Plugin Contributions
    0

    Default Re: Wishlist

    how do you make the compact mode default? the link is broken several pages back

  3. #173
    Join Date
    Dec 2005
    Posts
    77
    Plugin Contributions
    0

    Default Re: Wishlist-table prefix issue

    I added my table prefix to the lines mentioned in the install.txt. Ran the sql and when I went to admin/wishlist, it coudn't find the table. I checked and they were there. only they had an extra prefix. I dropped those tables and ran the sql without the prefix added. Still couldn't find it. Any clues?
    Thanks
    Jim

  4. #174
    Join Date
    Mar 2011
    Location
    Melbourne, Australia
    Posts
    13
    Plugin Contributions
    0

    Default Re: Wishlist

    jar3300 - I assume you got it figured out by now but I figured I would post in case anyone else is wondering the same thing.

    When installing in v1.3.9, I found that I needed to make the following changes.

    Table Names
    - no need to add your prefix to the SQL script, just run the script as it is.
    - in /includes/extra_datafiles/un_database_tables.php, prefix the table names with DB_PREFIX so that it ends up looking like the following:
    PHP Code:
    <?php

    // Wishlist
    define('UN_TABLE_WISHLISTS'DB_PREFIX 'un_wishlists');
    define('UN_TABLE_PRODUCTS_TO_WISHLISTS'DB_PREFIX 'un_products_to_wishlists');

    ?>
    Changing Name of Default Wish List
    If you want the default list to be called anything other than "Default" (in my case, I went with "My Wish List"), it's a very simple change.
    - in /includes/classes/un_wishlist.class.php search for function _createDefaultWishList()
    - enter your preferred list name in place of 'Default' in the first line in this function. For example:
    PHP Code:
    $result $this->createWishlist('My Wish List'''11); 
    Note: if any default wish lists have already been created and you would like them to use your new default list name, you can run a sql script to rename them. For example:
    Code:
    UPDATE `un_wishlists` 
    SET name='My Wish List' 
    WHERE default_status=1 AND name='Default';
    Item Added to Cart Instead of (or as well as) Wish List
    This is caused because the "Add to wishlist" button has been displayed as a submit button rather than just a regular image. Once again, it's a very simple fix.
    - in /includes/templates/template_default/templates/tpl_product_info_display.php search for bof Wishlist button
    - near the end of the following line, replace zen_image_submit with zen_image_button so you will end up with something similar to the following:
    PHP Code:
    <!--bof Wishlist button -->
    <div id="productWishlistLink" class="buttonRow back"><?php echo ('<a href="' zen_href_link(UN_FILENAME_WISHLISTzen_get_all_get_params(array('action''products_id')) . 'products_id='.(int)$_GET['products_id'].'&action=un_add_wishlist') . '">' zen_image_button(UN_BUTTON_IMAGE_WISHLIST_ADDUN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div>
    <!--eof Wishlist button -->

  5. #175
    Join Date
    Mar 2011
    Location
    Melbourne, Australia
    Posts
    13
    Plugin Contributions
    0

    Default Re: Wishlist

    A couple more changes for use with v1.3.9

    'Starting At' Text
    The page is hard-coded to show the "Starting At" prefix to the price regardless of whether it is needed. To fix this:
    - in /includes/templates/template_default/templates/tpl_product_info_display.php search for TEXT_BASE_PRICE
    - replace the entire line with the following:
    PHP Code:
    <li class="price"><?php echo ((zen_has_product_attributes_values((int)$products->fields['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE '') . $products_price?></li>
    - repeat for /includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_default.php

    Image Size
    If you would prefer the Wish List preview images to be displayed at a size other than their full size:
    - in /includes/templates/template_default/templates/tpl_product_info_display.php search for <!-- product data -->
    - two lines below you will see a call to the zen_image function with two empty parameters (ie '','', )
    - these parameters are for width and height so if you enter a value (or configuration constant such as MEDIUM_IMAGE_WIDTH) for one or both of these parameters, your image will be resized appropriately.
    - repeat for /includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_default.php

  6. #176
    Join Date
    Dec 2005
    Posts
    77
    Plugin Contributions
    0

    Default Re: Wishlist

    No, I hadn't gotten it figured out yet. Thanks. I will give it a try.
    Jim

  7. #177
    Join Date
    Dec 2005
    Posts
    77
    Plugin Contributions
    0

    Default Re: Wishlist

    [QUOTE=SnuggleBerryPie;1002312]A couple more changes for use with v1.3.9

    'Starting At' Text
    The page is hard-coded to show the "Starting At" prefix to the price regardless of whether it is needed. To fix this:
    - in /includes/templates/template_default/templates/tpl_product_info_display.php search for TEXT_BASE_PRICE
    - replace the entire line with the following:
    PHP Code:
    <li class="price"><?php echo ((zen_has_product_attributes_values((int)$products->fields['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE '') . $products_price?></li>
    - repeat for /includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_default.php
    When you say "replace the entire line with the following, do you mean this single line?
    echo $one_time . ((zen_has_product_attributes_values((int)$_GET['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE : '') .

    Thanks
    Jim

  8. #178
    Join Date
    Dec 2005
    Posts
    77
    Plugin Contributions
    0

    Default Re: Wishlist

    Image Size
    If you would prefer the Wish List preview images to be displayed at a size other than their full size:
    - in /includes/templates/template_default/templates/tpl_product_info_display.php search for <!-- product data -->

    I found this in the second file, but not in this one.
    Hhhmm.
    Thanks
    Jim

  9. #179
    Join Date
    Mar 2011
    Location
    Melbourne, Australia
    Posts
    13
    Plugin Contributions
    0

    Default Re: Wishlist

    Hmm... I've just had a look at the file I said to change and it doesn't look right at all. Let me double-check that I had the right filename listed...

  10. #180
    Join Date
    Mar 2011
    Location
    Melbourne, Australia
    Posts
    13
    Plugin Contributions
    0

    Default Re: Wishlist

    I don't have a button to be able to edit my original post (since it was only my 2nd post on the forum) but it looks like I have incorrect information there. You do not need to modify the tpl_product_info_display.php file as it is already doing the check correctly. Instead, just edit /includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_default.php

    Find:
    PHP Code:
    <li class="price"><?php echo TEXT_BASE_PRICE $products_price?></li>
    Replace with:
    PHP Code:
    <li class="price"><?php echo ((zen_has_product_attributes_values((int)$products->fields['products_id']) and $flag_show_product_info_starting_at == 1) ? TEXT_BASE_PRICE '') . $products_price?></li>
    Sorry for the confusion. I copied the checking code from the tpl_product_info_display.php file and must have confused the two files when I posted the instructions.

 

 
Page 18 of 38 FirstFirst ... 8161718192028 ... LastLast

Similar Threads

  1. v151 Wishlist
    By Kevin205 in forum General Questions
    Replies: 0
    Last Post: 15 Jan 2013, 01:45 AM
  2. Wishlist
    By simplemedia in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 20 Apr 2012, 08:40 PM
  3. Wishlist 0.9
    By vinnyna in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 23 Nov 2011, 03:52 PM
  4. 1.5.0 wishlist?
    By trickobrien in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 21 Oct 2011, 07:16 PM
  5. Wishlist
    By Dutchman in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 3 Oct 2007, 02:37 PM

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