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.
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.
how do you make the compact mode default? the link is broken several pages back
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
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:
Changing Name of Default Wish ListPHP Code:
<?php
// Wishlist
define('UN_TABLE_WISHLISTS', DB_PREFIX . 'un_wishlists');
define('UN_TABLE_PRODUCTS_TO_WISHLISTS', DB_PREFIX . 'un_products_to_wishlists');
?>
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:
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:PHP Code:
$result = $this->createWishlist('My Wish List', '', 1, 1);
Item Added to Cart Instead of (or as well as) Wish ListCode:UPDATE `un_wishlists` SET name='My Wish List' WHERE default_status=1 AND name='Default';
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_WISHLIST, zen_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_ADD, UN_BUTTON_WISHLIST_ADD_ALT) . '</a>'); ?></div>
<!--eof Wishlist button -->
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:
- repeat for /includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_default.phpPHP 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>
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
No, I hadn't gotten it figured out yet. Thanks. I will give it a try.
Jim
[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:
- repeat for /includes/templates/template_default/un_wishlist_find/tpl_un_wishlist_find_default.phpPHP 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>
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
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
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...
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:Replace with:PHP Code:
<li class="price"><?php echo 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.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>
Bookmarks