Jump to content


  • Content count

  • Joined

  • Last visited

  • Days Won


Everything posted by chuntse

  1. Hi, I want to use tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) to create a button which cn open a new window with parameters. I tried the params with 'newwindow', it eported error. Can it also created a button with onclick = "window.open('menubar=no, scrollbars=no, resizable=no, location=no, status=no')"; is it possible? Thanks in advanced. chuntse
  2. @YePix Thanks a lot for your information. Does it really can prompt up a new window or a new tab? chuntse
  3. Thanks a lot for your replies. I read this function again. It seems the button with $link and $params need to be set, then it will generate the target="_blank". tep_draw_button('New Window', null, 'test.php', null, array('type'=>'button','newwindow'=>''), null) I will try this later to see if it works
  4. //// // Output a jQuery UI Button function tep_draw_button($title = null, $icon = null, $link = null, $priority = null, $params = null, $style = null) { static $button_counter = 1; $types = array('submit', 'button', 'reset'); if ( !isset($params['type']) ) { $params['type'] = 'submit'; } if ( !in_array($params['type'], $types) ) { $params['type'] = 'submit'; } if ( ($params['type'] == 'submit') && isset($link) ) { $params['type'] = 'button'; } if (!isset($priority)) { $priority = 'secondary'; } $button = NULL; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '<a id="btn' . $button_counter . '" href="' . $link . '"'; if ( isset($params['newwindow']) ) { $button .= ' target="_blank" rel="noopener"'; } } else { $button .= '<button '; $button .= ' type="' . tep_output_string($params['type']) . '"'; } if ( isset($params['params']) ) { $button .= ' ' . $params['params']; } $button .= ' class="btn '; $button .= (isset($style)) ? $style : 'btn-default'; $button .= '">'; if (isset($icon) && tep_not_null($icon)) { $button .= ' <span class="' . $icon . '" aria-hidden="true"></span> '; } $button .= $title; if ( ($params['type'] == 'button') && isset($link) ) { $button .= '</a>'; } else { $button .= '</button>'; } $button_counter++; return $button; } This is the codes of the tep_draw_button.
  5. I tried the parameter of newwindow in the function. I saw the error of ' Warning: Illegal string offset 'type' '  when I open the page and I saw the source code of html did not contain the target="_blank" between the label of button.
  6. Yes, I know this codes do not make error. I just said I tried tep_draw_button('New Window', null, null, null, null, 'newwindow', null) But it didn't work. Where should I put target="_blank"? chuntse
  7. I had just tried, it reported ' Warning: Illegal string offset 'type' ' if ( isset($params['newwindow']) ) { $button .= ' target="_blank" rel="noopener"'; } } else { $button .= '<button '; $button .= ' type="' . tep_output_string($params['type']) . '"'; } I had tried the params with 'newwindow'. it also reported the same error. oops.. chuntse
  8. Hi, All, Sometimes I receive the order without the option value. Did somebody know the reason? Which files should I check debug it? Thanks in advanced. ChunTse
  9. I will get a copy to local driver to test. Hopefully I can solve it. Thanks a lot for your suggestion.
  10. This is the setting of the module you mentioned.
  11. The status is true after the shop is installed till now. I have not changed the status. I was testing the shop to place the order without selection of option, it warned and the order could not to be placed.
  12. If the problem cannot be traced out, maybe I can wait for the release of oscommerce v4. When will the oscommerce v4 be released? It is summer time already, Do you know it?
  13. Do you mean the php error log reporting? But it is live shop, this problem is not occurred frequently. It is happenes sometimes, it is hard to monitor it.
  14. Yes, the enforce selection was enabled. I will try to debug it by code to see if I can solve this problem. Thanks a lot for your help. ChunTse
  15. Thanks for your kind reply. I think that is not the problem of status of the module it is enabled. The customer can place orders, but sometimes the option information of the order is missing. I do not know the option information which the customer selected. Then I have to contact the clients to ask them. That is the reason I post this thread. ChunTse
  16. Thanks a lot for your kind assistance. But it is very particular, in one order, same product the the client orders with different size, but only one size in one item and other items has not information. The version I am using is bootstrap gold. Do you have any idea? Thanks. ChunTse
  17. chuntse

    New management and osCommerce v4

    Hi, I also created some addons for my shop. Discount, attribute image and etc. Is also hard for me to convert or create these addons for oscommerce v4? Because it was really hard work for me to read and modify the core codes and turn it into reality.
  18. chuntse

    New management and osCommerce v4

    @Moxamint Hi Eddy, I want it be into simplified Chinese. Chuntse
  19. chuntse

    New management and osCommerce v4

    Hi, Congratulation on the new version of oscommerce. I would like to know if the new version will be published with Chinese language pack?if not, how can I get a copy of english language pack to translate it into Chinese? Thanks in advanced. Chuntse
  20. chuntse

    ULTIMATE Seo Urls 5 - by FWR Media

    Hi, There is a problem when I am using the usu5_sitemaps, it reports SELECT p.products_id, p.products_date_added, p.products_last_modified FROM products_description pd INNER JOIN products p ON p.products_id = pd.products_id WHERE p.products_status = '1' AND pd.language_id = ORDER BY p.products_last_modified DESC, p.products_date_added DESC [TEP STOP] It seems the $languages_id is empty, could anyone advise me to solve this problem? Thanks in advanced. Chuntse
  21. Hi All, Did someone install the addon of BS AjaxAngular Professional ShoppingCart? I found a problem that if I add same product with some option in different property, and it just show the last option value in the shopping cart. For example: Add a T-Shirt Color: Black and add this product with Color: Blue. It just shows the T-Shirt Color: Blue in the shopping cart. Did someone encounter for this problem? chuntse
  22. chuntse

    Multi_Vendor_Shipping new thread

    Hi, I would like to know if the verion of MVS 1.4 is stable version? I downloaded it and installed it. But I found some files are missing. catalog/includes/modules/boxes/bm_estimate_shipping.php I only found bm_estimate_shipping.php in catalog/includes/languages/english/modules/boxes/. I noticed that the shipping modules files are located in the folder of vendors_shipping. Does it mean I have to create a new module management of Vendors Shipping to install these modules or I just put it to the folder of catalog/includes/modules/shipping/ ? I have created Vendors Shipping with cfg_vendors_shipping.php under modules menu to manage these shipping modules, and it did work. Even I put them to the modules of shipping folder and install the shipping module, they are same problems. The options and texts of the module did show after the shipping module is install. I noticed that the value in the shipping module is MODULE_SHIPPING_ will them be conficted with the shipping modules? I found there is flat shipping module in shipping module folder, I replaced all MODULE_SHIPPING_ with MODULE_VENDORS_SHIPPING_ . Please advise me. chuntse
  23. chuntse

    [Contribution] Option Types v2

    @Tsimi Thanks, I sought for the info in this thread and saw his words. But I think it does not transfer two or more values of checkbox for the core codes of oscommerce. As I also looking into the codes of classes of shipping_cart.php, general.php and the application_top.php. Do you have any suggestion for me to modify the codes which can make it to transfer more values from checkboxes to the shopping cart or do you know which function is processing the data of product? I tried to print the add_product, it shown nothing. Thanks in advanced. chuntse
  24. chuntse

    [Contribution] Option Types v2

    @Tsimi Thanks for your kind reply. Surely I want it to be multiple selectiom, but I don't why it can only transfer one value of checkbox to shopping cart when I selected two.As I used print_r($products); to check. Does it have this kind of problem of BS version at your side? Chuntse
  25. chuntse

    [Contribution] Option Types v2

    Hi, I have installed BS AjaxAngular Professional ShoppingCart, Options as Image, So far it seems there is not problem. And now I am trying to integrate the shop with Option Types. I tried checkbox with two options, it can get one value(I used print($products); to see), but I can select two. Are there no codes to force the checkbox only can select one? or there are. it seems that I couldn't find it in the instructions. Thanks in advanced. chuntse