Jump to content

De Dokta

  • Content count

  • Joined

  • Last visited

  • Days Won


Posts posted by De Dokta

  1. @@gvv


    Try this: In application_top.php in  - case 'add_to_wishlist' - replace: 

                                  tep_redirect(tep_href_link('wishlist.php', tep_get_all_get_params($parameters)));
    /* /Wish List End */                         


                                  if(WISHLIST_REDIRECT ==  'Yes') tep_redirect(tep_href_link('wishlist.php', tep_get_all_get_params($parameters)));
    /* /Wish List End */                         

  2. @@gvv


    Yes! For includes/modules/new_products.php e.g. it should be something like this:


                          $new_prods_content .= tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', tep_href_link('wishlist.php', tep_get_all_get_params(array('action')) . 'action=add_to_wishlist&products_id=' . $new_products['products_id']), NULL, NULL, 'btn-default btn-sm');


    Add it where you want the wishlist button to appear. And in other modules similar....



  3. @ De Dokta


    two questions need your help please.


    1. save message, it doesn't show anywhere.


    2. can see the invoice/packingslip in html format, but error with pdf format

    FPDF error: Interlacing not supported: images/store_logo.png






    1. No idea what went wrong. If you save the message and then generate a new pdf or html invoice/packingslip in the invoice editor the message should be displayed on your new invoice/packingslip. It does not work if you generate an invoice/packingslip in orders.php.


    2. This has nothing to do with the invoice Editor, but that you have saved your logo with the "Interlaced" option. FPDF supports no "Interlaced" and for today's high-speed Internet connections, this option is also unnecessary!

  4. @@Patty


    Ok, the version I use is a little bit different:

    // If all is well, make the changes to the database
        if ($pass == 1) {
          tep_db_query("update customers set customers_password='" . tep_encrypt_password ($new_password) . "' where customers_id='" . (int)$customer_id . "'");
    // Get the customer's information for the success message
          $customer_name_query = tep_db_query("select customers_firstname, customers_lastname, customers_guest from customers where customers_id='" . (int)$customer_id . "' and customers_guest = '0'");
          $customer_name = tep_db_fetch_array($customer_name_query);
          tep_mail($customer_name['customers_firstname'] . " " . $customer_name['customers_lastname'], $customer_name['customers_email_address'], EMAIL_PASSWORD_REMINDER_SUBJECT, nl2br(sprintf(EMAIL_PASSWORD_REMINDER_BODY, $new_password)), STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
    // End POST section

    And this part:

    define('EMAIL_PASSWORD_REMINDER_SUBJECT', STORE_NAME . ' - New Password');
    define('EMAIL_PASSWORD_REMINDER_BODY', 'A new password was requested for your account at ' . STORE_NAME . '.' . "\n\n" . 'Your new password to \'' . STORE_NAME . '\' is:' . "\n\n" . '   %s' . "\n\n");

    is moved to admin/includes/languages/Your_language/change_password.php - where it belongs to!



  5. @@ArtcoInc


    Hi Malcolm


    Yes I know that the email validation is a problem: Originally I had it completly taken out from account_pwa.php. Then I got a mail where someone complained, that when a customer logs in as a guest, but does not complete the checkout process (so the data are not deleted), and later wants to register as a customer, an error message comes that the email already exists.

    So I put back the email validation. Now the same problem appears if a guest leaves before the checkout process is completed: If he comes back later again and wants again to purchase as a guest he gets the same error message that the email already exists.

    I have thought to build in a routine which checks the DB regularly for guest entries older than e.g. 24 hours and deletes them automatically.
    It's not that complicated, but at the moment I just don't have time, to do this and especially to test thoroughly.

  6. @@element3


    You were searching in the wrong file for reason for this error. Your code snippets are from catalog/checkout_process, while the error message tells you that there's a mistake in catalog/includes/languages/english/checkout_process.php. There you should find something like:

    define('EMAIL_WARNING', 'NOTE: This email address has been submitted by a visitor to our online-shop. If you were not this visitor, please send a message to:  ' . STORE_OWNER_EMAIL_ADDRESS . 'Thank you for your purchase and have a nice day.');



  7. Hi again,


    after checking W3C i got 3 errors:


    The problem is when you insert links (<a>) in the news text.


    The entry is displayed as a fully link. When you insert a link you will have a double open a-tag.


    W3C Error: <a> Start tag a seen but an element of the same type was already open.




    This is indeed a problem: the news rotator has already a built in link <a href> because I wanted to link from the displayed news in the rotator (which may be truncated) to the respective (complete) news in the news module.

    If you want to use the rotator for something different e.g. to display some new products with a link to the respective product page, you should remove this built in link ( $wrapper_slides .= '<a href="' . tep_href_link('latest_news.php', 'news_id=' . $latest_news['news_id'], $request_type) . '">'; and $wrapper_slides .= '</a>';) from the module!





  8. Hi
    I made a new version of my Latest News Multilingual Addon (http://addons.oscommerce.com/info/9147) as content module for BS-Gold.


    It displays news in a sliding or fading carousel which you can install on the index page or in the header area.

    With the exception of the index.php, which by default has (still) no hook, no core files must be changed.

    Download here: http://addons.oscommerce.com/info/9314

    Demo here: http://www.video-stuff.de/demo/bootstrap


    Pls. report any problems, bugs etc. here.

  9. Artisan Foundry, on 12 May 2015 - 21:20, said:snapback.png

    The new address book entry and edit works  -  but the red star moves to the right and covers the little down arrow in the State drop down


    There's a <div class="form-group"> in address_book_details.php. Change it to <div class="form-group has-feedback"> and the asterix will be in the right place.



  10. Be aware that a button inside the product listing works only if the product doesn't have attributes.

    Other solution would be to build in the same redirect to the application_top.php for thew wishlist button, similar to the buy now button.

    If attributes -> redirect to product_info.php else -> add to wishlist.



    Yes, you are right! :-

    The only way to add a wishlist button to the product_listing seems to be to define a new case 'add_to_wishlist' in application_top:


    Right before:  case 'notify' :         if (tep_session_is_registered('customer_id')) {


    /*Wish List */
         case 'add_to_wishlist' : if (isset($_GET['products_id'])) {
                                   if (tep_has_product_attributes($_GET['products_id'])) {
                                   tep_redirect(tep_href_link('product_info.php', 'products_id=' . $_GET['products_id']));
                                    } else {
                                   $wishList->add_wishList($_GET['products_id'], $wishList->get_quantity($_GET['products_id'])+1);
                                  tep_redirect(tep_href_link('wishlist.php', tep_get_all_get_params($parameters)));
    /* /Wish List End */                         

    And then in product_listing add something like:       

     $prod_list_contents .= '       <div class="col-xs-6">' . tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=add_to_wishlist&products_id=' . $listing['products_id']), NULL, NULL, 'btn-default btn-sm') . '</div>';

    Works for me on bs-gold........



  11. Hi
    yes it's possible with a little trick! :rolleyes:
    In includes/modules/product_listing.php somewhere around the buttons area add (depends on where you want to have the wishlist button):

    $prod_list_contents .= '       <div class="col-xs-6">' . tep_draw_form('cart_quantity', tep_href_link('product_info.php', tep_get_all_get_params(array('action')) . 'action=add_product')) . tep_draw_hidden_field('products_id', $listing['products_id']) . tep_draw_button(TEXT_ADD_WISHLIST, 'glyphicon glyphicon-heart', null, 'primary', array('params' => 'name="wishlist" value="wishlist"')) . '</form ></div>';


  12. @@Tsimi


    I now understand why it is so. I removed this line from product_info.php:


    <div class="col-xs-6 text-right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'glyphicon glyphicon-shopping-cart', null, 'primary', null, 'btn-success'); ?></div>



    what do You think, is there any solution, if I wanna remove that line (remove 'add to cart'button)? 


    If you want to remove the add-to-cart button but use the wishlist function, keep the hidden field intact.


    <div class="col-xs-6 text-right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_draw_button(IMAGE_BUTTON_IN_CART, 'glyphicon glyphicon-shopping-cart', null, 'primary', null, 'btn-success'); ?></div>

  13. The "important" field is to decide, whether you want to display a news message on the main page module or not.  You may not want to display any news which is enabled on the index page but only the really important. In the admin tool you find for that a field "Display on main page?"