Jump to content

De Dokta

Members
  • Content count

    329
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by De Dokta

  1. De Dokta

    I want to skip "What's In Your Cart"

    Hi, you can deactivate the redirect to the shopping cart in admin => configuration => my store => Display Cart After Adding Product = false. Or if you want to redirect your customer for example to the checkout_shipping immediatly after he clicked the buy button: Open includes/application_top.php, search for: $goto = FILENAME_SHOPPING_CART; and change it to: $goto = FILENAME_CHECKOUT_SHIPPING; J.J.
  2. @@Tsimi No, I couldn't reproduce this error. :unsure: After Mort-Lemur reported this problem I tested several payment moduls - they all worked without any problems. I have no idea how this changes could have implications on payment modules at all!? BTW: These days we discussed in the German forum to replace the old functions in seo.class.php by the default osc tep_db_ functions. This can be done but requires further changes of the installation functions, while the replacement of mysql_ by mysqli_ does not require further modifications. The easiest way is what I have done - the best way probably would be to use the tep_db_ functions.... :- J.J.
  3. De Dokta

    ULTIMATE Seo Urls 5 - by FWR Media

    @@Tsimi Hi Lambros, are you sure that you are running this SEO tool? I can't find a seo.class.php in this addon, but in this one: Ultimate SEO URLs. Solution for that: http://forums.oscommerce.com/topic/154166-contribution-ultimate-seo-urls-v21-by-chemo/page-345#entry1692222 (and following) J.J.
  4. De Dokta

    Invoice Editor 1.0

    @@ArtcoInc Also using 234bs I can't confirm that. If I change as proposed the code I get an error - while without this change the popup works without any problems. Does this popup - where you are asked to confirm overwriting an existing invoice - not work with you? J.J.
  5. Hi PWA does not mean not to raise any data of your customers, but that no account is created and the personal data will be deleted after processing the order. PWA or not PWA - what you always need is some data to communicate with your customers (email) and to send them the sold items (address). What other data else you want to know from your customer is up to you to decide: Go to admin => configuration => customer details and set all the customers details to false which you don't want to ask. The telephone number you can directly deactivate in admin => modules => content => login without account form. Then only name, address and email remain on account_pwa.php to enter. => Purchase without account Your introduction text....Change in includes/languages/english/modules/content/login/cm_pwa_login.php My god, how do I make it actually more foolproof? Open catalog/includes/languages/english/modules/content/login/cm_pwa_login.php and enter the your text to read on the login page for the module! By the way: If you are not happy with PWA you can give Better Checkout by mattjt83 a try - demo here. It's a very fine solution, but you have to pay for it. J.J.
  6. De Dokta

    Wishlist for 2.3 - Problem with emails

    @@Mort-lemur Hi I remember the issue with the T&C attachments :D . Generally I would never recommend to replace any of the default functions of osc by a new one since this could have unexpected implications elsewhere in the shop. It is always better to leave the existing function untouched and simply to add a possibly required additional function. J.J.
  7. De Dokta

    Quantity box in product_listing 1.2 for 2.3

    Hi, it does not work because in product_info.php the action normally is not 'buy_now', but 'add_product': <?php echo tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')); Either you try to change the case 'add_product' in application_top.php similar to the case 'buy_now', or you try to replace 'action=add_product' with 'action=buy_now' in the above mentioned passage. J.J.
  8. De Dokta

    Quantity box in product_listing 1.2 for 2.3

    Hi, What is not clear with the installation instructions? In product_listing.php find: $prod_list_contents .= ' <tr><td align="center">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $listing['products_id'])) . '</td>'; replace it with: $prod_list_contents .= ' <td align="center">' . tep_draw_form('buy_now', tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action')) . 'action=buy_now&products_id='. $listing['products_id']), 'POST') . '<table cellSpacing="0" cellPadding="0" width="100%"><tr><td align="right" width="25%">' . tep_draw_input_field('buyqty', '1', 'size=3 maxlength=3') . '</td><td align="center" width="75%" valign="absmiddle">' . tep_draw_button(IMAGE_BUTTON_BUY_NOW, 'cart') . '<td align="absmiddle">' . '</td></tr></table></form>'; No idea why you added an opening <?php and a closing ?> to that passage!? :wacko: And the same procedure in application_top.php: Find the code snippet mentioned in the install.txt and replace it by the other snippet. It's simple "copy and paste". J.J.
  9. De Dokta

    OSC 2.3.4 ckeditor not working

    Hi, You can use them both. Functionally, there are no major differences. But for my taste, CKeditor has the better user interface. And the installation of tiny mce was back when I used it, a little bit complicated. :- J.J.
  10. De Dokta

    OSC 2.3.4 ckeditor not working

    Hi, put the code snippet in admin/includes/template_top.php not before the <head> tag, but right before the </head> tag. And the path should read: <script type="text/javascript" src="ext/ckeditor/ckeditor.js"></script> <script type="text/javascript" src="ext/ckeditor/adapters/jquery.js"></script> (assumed you have put the ckeditor into the folder admin/ext/ckeditor) J.J.
  11. De Dokta

    Guest Checkout options for v2.3.3 ?

    Hi, depends on what of the millions of different versions of PWA you use. If you use this version http://addons.oscommerce.com/info/8457, your problem with the nav bar results from here: header.php original code: <?php echo tep_draw_button(HEADER_TITLE_CART_CONTENTS . ($cart->count_contents() > 0 ? ' (' . $cart->count_contents() . ')' : ''), 'cart', tep_href_link(FILENAME_SHOPPING_CART)) . tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')) . tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); if (tep_session_is_registered('customer_id')) { echo tep_draw_button(HEADER_TITLE_LOGOFF, null, tep_href_link(FILENAME_LOGOFF, '', 'SSL')); } ?> is replaced by: <!-- PWA BOF --> <?php if (tep_session_is_registered('customer_id')) { ?><a href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_LOGOFF; ?></a> | <?php } ?><?php if (tep_session_is_registered('customer_id') && (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest'])) && !$order->customer['is_dummy_account']) { ?><a href="<?php echo tep_href_link(FILENAME_ACCOUNT, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_MY_ACCOUNT; ?></a> | <?php } ?><a href="<?php echo tep_href_link(FILENAME_SHOPPING_CART); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CART_CONTENTS; ?></a> | <a href="<?php echo tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'); ?>" class="headerNavigation"><?php echo HEADER_TITLE_CHECKOUT; ?></a> <!-- PWA EOF --> This removes the original buttons in the header by links on the left side of the nav bar. Some like this solution (I do) - others don't! If you want the buttons back, restore the original code and then change it to: .... tep_draw_button(HEADER_TITLE_CHECKOUT, 'triangle-1-e', tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL')); if (!isset($HTTP_GET_VARS['guest']) && !isset($HTTP_POST_VARS['guest']) && !$order->customer['is_dummy_account']) { echo tep_draw_button(HEADER_TITLE_MY_ACCOUNT, 'person', tep_href_link(FILENAME_ACCOUNT, '', 'SSL')); } .... Regards J.J.
  12. De Dokta

    Invoice Editor 1.0

    Hi, Good question! I never ask for it. :blush: But according to the online manual fpdf - which I used for the pdf forms - is based on milimeters. J.J.
  13. De Dokta

    Invoice Editor 1.0

    Hi, As the author of the contrib I will try to answer your questions. Please excuse my limited knowledge of English - I hope I can make me understood anyway 1. I'm a little confused because there is no command line in the sql files to set the DB tables to latin1_swedish_ci, utf8 or whatever. :unsure: The tables should be installed with the same coding as all other tables of your DB. If your other tables are in utf8_unicode_ci you should convert the tables of the Invoice editor to utf8. To do this is quite simple: Go to Admin -> Tools -> Database Tables - click the checkboxes of all tables that are not utf8 - select in the pulldown at the bottom of the page 'Convert to utf8' (a new pulldown appears, where you select 'Auto-Detect') - click the Go button. Ready! 2. What is not clear at this instruction? Do you have installed the tool named Order editor? (Order editor is a tool other than Invoice editor!) If yes, you do not need to add these lines of code to your general.php. If no, add them! 3. My mistake! :blush: In invoice_en.sql in some entries accidentally a false Configuration Group is entered. To fix it open your DB with phpmyadmin (or whatever you use to manipulate your DB), search ORDER_EDITOR_PAYMENT_DROPDOWN, ORDER_EDITOR_USE_SPPC, ORDER_EDITOR_CREDIT_CARD, INV_SAVE and SAVE_FOLDER and and change the entries for configuration_group_id from 911 to 912. 4. You must have a very BIG store logo. You're the first whose logo does not fit in the space provided. :P If you don't want to reduce the size of your logo, you can change the position of the address label. Open invoice_editor_pdf.php and invoice_pdf.php and find the following code: // Adressfeld mit Absender und Rechnungsanschrift $pdf->SetX(0); $pdf->SetY(45); /// horizontal position address label $pdf->SetFont('Arial','u',7); $pdf->SetTextColor(0); $pdf->Text(20,40, SHOPBETREIBER . ' • ' . SHOPSTRASSE . ' • ' . SHOPSTADT); ///horizontal position address headline $pdf->SetFont('Arial','',10); $pdf->SetTextColor(0); $pdf->Cell(15); $pdf->MultiCell(70, 4, $anrede . tep_address_format($order->billing['format_id'], $order->billing, '', '', "\n"),0,'L'); If you increase the values at the marked positions, the address label will slide down. You'll probably have to try a little bit to find the appropriate values ​​for you. If necessary, execute these changes also in the packingslip_editor_pdf.php and packingslip_pdf.php. And last your "slightly related". If you have installed a guest checkout (Purchase without account - PWA??), the guest customer should not get at all a backlink to his - non-existent - order history. With PWA it's a simple piece of code added to the checkout_process.php: if (!$order->customer['is_dummy_account']) { $email_order .= EMAIL_TEXT_INVOICE_URL . ' ' . tep_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . $insert_id, 'SSL', false) . "\n" ; } J.J.
  14. Hi you find these definitions in catalog/includes/filenames.php J.J.
  15. De Dokta

    Looking for a guest checkout addon

    http://addons.oscommerce.com/info/8457 is for 2.3.x
  16. @@Mort-lemur oops, i'm sorry. But I have no idea how these changes in the seo_urls may affect the payment methods. I just run some orders with different payment methods that I use - I have not experienced any problems. Maybe this is a specific problem with Barclays EPDQ, which I do not know. :wacko:
  17. Very friendly of Hildegard that she has posted my approach here. But she has overlooked a correction which I have added in the German Forum. The last two functions should correctly rather be like this: * Function to fetch the last insertID * @[member='author'] Bobby Easland * @version 1.0 * @[member='Return'] integer */ function InsertID() { return mysqli_insert_id($this->link_id); } /** * Function to free the resource * @[member='author'] Bobby Easland * @version 1.0 * @[member='param'] resource $resource_id * @[member='Return'] boolean */ function Free($resource_id){ return mysqli_free_result($resource_id); } # end function Regards J.J.
  18. Hi, Simply paste the code snippet under "class methods". I don't know if your code works. If not, try: if ($order->delivery['country_id'] != "223") { $this->enabled = false; } This definitely works. ;) J.J.
  19. Hi, this step is simply obsolete with osC 2.3.3.4 - you have to do nothing here! :) Regards J.J.
  20. De Dokta

    [Help] Mouse over image

    ... with Mouse over image I simply dit it creating an new image folder - in my case 'bigimage'. Then I added the path to the configure.php DIR_WS_BIGIMAGES and changed the $image_pathe to HTTP_SERVER.DIR_WS_HTTP_CATALOG.DIR_WS_BIGIMAGES. There two ways to link the right popup image to the right product: Either you give related images in both directories the same name (a little hand made - but it works) or you create in the products table a new column 'products_bigimage' and add 'bigimage' to admin/categories.php (file field, queries etc.). Then of course you have to add 'bigimage' to the queries in the related files e.g. the $new_products_query and then you can retrieve the images with e.g. $new_products['products_bigimage']. Depends on how many products you have: For a few I would do it in the first way - for many in the second.... I used it on osC 2.3. not osC 3. Regards J.J.
  21. De Dokta

    [Help] Mouse over image

    Hi, with a small change in the main.js you can control the size of the displayed image. Open main.js and change: $ ("body"). append ("<p id='screenshot'> <img src='"+ this.rel +"' alt='Loading...' />" + c + "</ p> "); to: $ ("body"). append ("<p id='screenshot'> <img src='"+ this.rel +"' alt='Loading...' width='250'/>" + c + "</ p>"); Choose any for you appropriate size. BUT: main.js does not enlarge small images - this little hack only works if you have a bigger image which is scaled for display on product_listing etc...... Regards J.J.
  22. De Dokta

    Guest Checkout options for v2.3.3 ?

    Purchase without account works without any problems in my 2.3.3.4 shop (I used the installation instructions by sandmantm) and since I installed it our sales have significantly increased!. Maybe this is a specific german phenomenon, since we are quite paranoid about privacy issues in Germany :D ..............
  23. Hi, Hi, then you should take a look into your login.php. Around line 71 you find this passage: if (sizeof($navigation->snapshot) > 0) { $origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']); $navigation->clear_snapshot(); tep_redirect($origin_href); } else { tep_redirect(tep_href_link(FILENAME_DEFAULT)); } I guess you could have any change in this passage that redirects you to the create_account :unsure: greetz J.J.
  24. To copy the code snippet from the checkout_shipping simply into the file application_top results in a redirection error: "Redirect Loop Firefox has detected that the server is redirecting the request for this address in a way that will never complete." :wacko: But it works fine, if you add something like this to your application_top: if (!tep_session_is_registered('customer_id') && stristr($_SERVER["REQUEST_URI"], 'login') === FALSE) { $navigation->set_snapshot(); tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL')); } ;) greetz J.J.
×