-
Posts
45 -
Joined
-
Last visited
Everything posted by bogdan90i
-
Order Status Changing take a long time
bogdan90i replied to minfin's topic in Upgrading PrestaShop from a previous version
The sending of emails was exactly why i got the 504 error. Thank you so very much. -
So here is my problem. I have a class created that extends AdminProductsControllerCore. What it does is if you have one product that you want to split in 3 different products but have the same stock, it will have 1 master and 2 slaves. For example: You have reference - N101 that has stock 100, but you want to have 3 products with different reference N100FR and N100DE. What the new class does is that if you link the 3 products, all will have the same stock. As soon as you change the stock for one, it will also change it for the other 2. We also have a connection to a fulfillment system that manages the warehouse stock. This means that the Fulfillment software is connected through WebService to Prestashop and every change in the Fulfillment system to the stock is being sent to Prestashop. This also works very good. Also to be noted that in the Fulfillment software we have multiple systems linked to import orders, not just prestashop so it means that some orders are never in prestashop, but the stock drops. Now comes the problem: If i manually (or by new order) change the stock in Prestashop, all products change qty to the new value. But if the qty changes in the Fulfillment system, only the master sku changes stock in Prestashop. So this actually means that the new class that changes the stock when it's manually done in Prestashop (or by creation of new order) does not work. My question is how can i make it that when the stock is changed, that the class that i created will run? If there is need for more details, please let me know. Thanks in advance.
-
- webservice
- updatews()
-
(and 1 more)
Tagged with:
-
Hello, The problem is that before 1.7 when you went to www.store1.com, you could switch between stores by the dropdown in the right top corner without the url changing, and also when you click to view front office, you would see the one you selected. From 1.7 you can still change the store but sometimes in some categories in the backoffice it redirect you to www.store2.com (meaning that you had store2 selected in the dropdown but were in www.store1.com url). And also from 1.7 it does not redirect you to the right front-office. It would be good if you have a fix to post it here, so others can use it. Thanks
- 16 replies
-
- multistore
- prestashop 1.7
-
(and 1 more)
Tagged with:
-
I tried to find a fix, but there is none. Passing to symphony was really premature. There is a lot of module incompatibility also. For example if using paypal as payment you cannot manually change status. The fix was to create a new status of canceled. And some other modules don't work as expected. I just decided to have 1 store/install that way.. it's partly fixed.
- 16 replies
-
- multistore
- prestashop 1.7
-
(and 1 more)
Tagged with:
-
Hello marcin_jaworski, Thanks for the input, but the urls are setup. As i said if i login to the backoffice though example.com, both shops in the dropdown show the example.com url. If i login to the backoffice through example2.com, then again both shops will have the example2.com value in the dropdown. Also there is a really strange behaviour when i am logged in to shop1 url and select for example shop1 and go to modules and change something, when i am on the module configuration page and change the store to shop2 to make modifications, it logs me out and redirects me to shop2 url backoffice to login.
- 16 replies
-
- multistore
- prestashop 1.7
-
(and 1 more)
Tagged with:
-
Nobody else has this problem?
- 16 replies
-
- multistore
- prestashop 1.7
-
(and 1 more)
Tagged with:
-
Hello, I just found out a bug i can say. I have a prestashop 1.7.2.2 install on my server. What happens is that i created the multistore and have 2 shops. Ex: example.com and example2.com. If you go to the front office, they work as expected, you have 2 stores and everything is nice. The problem comes when you go to the backoffice and try to click on the link to take you to the frontoffice, like this: https://i.imgur.com/bDpGZ9B.jpg If i go over it, it shows the link to the frontoffice but it's the same one for both shops. And the link that it redirects be is the link that i'm logged in, in the backoffice. For example if i'm logged in using this url http://example.com/admin, then both shop button will redirect me to the same frontoffice, meaning example.com. And if i'm logged in, on http://example2.com, then both of the shop buttons will redirect me to http://example2.com frontoffice. I did a fresh install for prestashop 1.7, 1.7.2.3 and 1.7.2 and all have the same behaviour. I looked in the code and this part is making it give the same url $shop_data['uri'] which can be found under admin_folder/themes/default/template/helpers/shop_list/list.tpl What is strange is that because of some anomaly, that i think has to do with what i just said, i'm using a module named TM - Payment CMS Block. And i selected "All Stores" and did some modifications and only the main website wish ID 1 saves the changes in the database. The second one doesn't work (keep in mind that i'm logged in as example.com, meaning this is the main website). And when i try to login to the backoffice through example2.com and edit the module, i get redirected to login again but to example.com, not example2.com. So with this said, if there is something that needs to be asked of me, please feel free. I will answer any question. Thanks in advance, Bogdan
- 16 replies
-
- multistore
- prestashop 1.7
-
(and 1 more)
Tagged with:
-
Prestashop 1.7 : override of Admin Product
bogdan90i replied to jeremiezip's topic in Core developers
Hello, I have the website in maintenance mode. And i have force recompile and no cache. also checked the smarty folder and nothing to delete. Edit: So now it works, i think something was blocked. I tried it from different browsers and it did not work. But after i changed the original ean13 to what i wanted and back it started working. So the code is just fine. -
Prestashop 1.7 : override of Admin Product
bogdan90i replied to jeremiezip's topic in Core developers
Hello, Does anybody have any idea on how to edit the Product Option page of the product? I edited: in src/PrestaShopBundle/Form/Admin/Product/ProductOptions.php I added after the ean13 add: ->add('ean13_current_shop', 'Symfony\Component\Form\Extension\Core\Type\TextType', array( 'required' => false, 'error_bubbling' => true, 'label' => $this->translator->trans('EAN-13 or JAN barcodez', [], 'Admin.Catalog.Feature'), 'constraints' => array( new Assert\Regex("/^[0-9]{0,13}$/"), ) )) in src/PrestaShopBundle/Model/Product/AdminModelAdapter.php: Also after ean13: 'ean13_current_shop' => $this->product->ean13_current_shop, in src/PrestaShopBundle/Resources/views/Admin/Product/form.html.twig Also after ean13 field: <fieldset class="col-md-4 form-group"> <label class="form-control-label"> [spam-filter] form.step6.ean13_current_shop.vars.label [spam-filter] <span class="help-box" data-toggle="popover" data-content="[spam-filter] "This type of product code is specific to Europe and Japan, but is widely used internationally. It is a superset of the UPC code: all products marked with an EAN will be accepted in North America."|trans({}, 'Admin.Catalog.Help') [spam-filter]" ></span> </label> [spam-filter] form_errors(form.step6.ean13_current_shop) [spam-filter] [spam-filter] form_widget(form.step6.ean13_current_shop) [spam-filter] </fieldset> And also edited the Product.php class directly. And i added: /** @var string Ean-13 barcode */ public $ean13_current_shop; and 'ean13_current_shop' => array('type' => self::TYPE_STRING, 'validate' => 'isEan13', 'size' => 13), And still it does not show on the front office. And as a test i deleted the file form.html.twig and nothing disappeared from the Product Options tab of the product. Any idea? Using prestashop 1.7.2.0 Thanks -
Duplicate "Private Comment" function
bogdan90i replied to Eutanasio's topic in Configuring and using PrestaShop
Hello, No i do not but actually i found why the data was not saved in the database. In the AdminCustomersController.php i forgot to add $customer->note2 = $note2; after if (!empty($note) && !Validate::isCleanHtml($note)) { die('error:validation'); } And to add $note2 = Tools::htmlentitiesDecodeUTF8(Tools::getValue('note2')); After if ($this->tabAccess['edit'] === '1') { $note = Tools::htmlentitiesDecodeUTF8(Tools::getValue('note')); What i wanted to do is to create a form replicating the private notes and it worked. I don't think it's the cleanest way to do it but it's in developing mode. If anybody wants to make a form for the clients but to be able to see only by the employees then tell me and i will guide you as far as i got (i mean with the raw version). I needed it for example for a company that does service checking, here is a image of what i made: So as you can see, one big form that has a save at the end of it. I thank you for you help omar2886 -
Duplicate "Private Comment" function
bogdan90i replied to Eutanasio's topic in Configuring and using PrestaShop
Hello, Can you tell me how you did it? I want to actually add a second "Private note" in the customer information page in the backoffice and i duplicated the same files. To keep it simple i just created note2 and it does not work. For me the problem is that the second value is set as "undefined" I changed the .js file like this function saveCustomerNote(customerId){ var noteContent = $('#noteContent').val(); var noteContentform = $('#noteContentform').val(); var data = 'token=' + token_admin_customers + '&tab=AdminCustomers&ajax=1&action=updateCustomerNote&id_customer=' + customerId + '¬e=' + encodeURIComponent(noteContent) + '¬e2=' + encodeURIComponent(noteContentform); $.ajax({ type: "POST", url: "index.php", data: data, async : true, success: function(r) { if (r == 'ok') { $('#submitCustomerNote').attr('disabled', true); } showSuccessMessage(update_success_msg); } }); } Do you think you can help me? -
How to add hyperlink and images to features ?
bogdan90i replied to gigamax's topic in Core developers
Any help please? i'm really stuck and i got nowhere -
How to add hyperlink and images to features ?
bogdan90i replied to gigamax's topic in Core developers
Any help please? I looked at what antonin fayard wrote but it's not what i need. -
How to add hyperlink and images to features ?
bogdan90i replied to gigamax's topic in Core developers
Hello, Just tried your patch on prestashop 1.6 and each time i try to enter the image+link and i click on save, i get But it only saves The actual text from the hyperlink. Can you please help me? Edit 17.06.2015: I just saw that it actually works if i add the hyperlink to the value as a fixed value, but if i try to add it as a customized value it does not work. -
Could anyone help me, please?
- 1 reply
-
- shared location sku
- shared quatity multiple sku
- (and 2 more)
-
Could anyone help me please.
-
Hello, I want to ask you if there is any way or if it would be possible to create a module that records in a log what an employee has done, what he modified, changes made by him in general. Thank you in advance.
-
Hello, I have a question: How can i change the system so i have: What i want is for Call of duty with those SKU to have a shared stock. So if i have in location "home" 100 products, all the sku will have 100 stock. If there are bought 20 products from sku 22, the location shows quantity of 80 and all the other sku get that quantity. Please tell me if i can give you more information. Thank you in advance.
- 1 reply
-
- shared location sku
- shared quatity multiple sku
- (and 2 more)
-
Hello, I have installed Prestashop 1.4.8.2. I am trying to add social share button for facebook. I went to their website on the developer side and got the iframe from them. After i had the iframe i changed the url so it would get the product page url. The button works, the only thing is that instead of sharing the cover picture, the share has the website logo. Another thing is that i found one product that takes the cover picture, but for the others it takes the logo. Here is the iframe i have: <iframe src="//www.facebook.com/plugins/share_button.php?href=http://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}&layout=button_count" scrolling="no" frameborder="0" style="border:none; overflow:hidden;" allowTransparency="true"></iframe> I don't know if i am allowed to post the link to the pages so i appologize in advance This link does not share the cover picture http://www.adoraevening.ro/rochii-cocktail/219-rochie-cocktail-13283.html This link shares the cover picture http://www.adoraevening.ro/rochii-de-seara/188-rochie-de-seara-13158.html I thank you in advance.
- 1 reply
-
- social share
-
(and 2 more)
Tagged with:
-
How did you fix it? My share works the thing is that my header image is displayed instead of the product picture
- 11 replies
-
- open graph
-
(and 2 more)
Tagged with:
-
add 'selected' class to current cms page/category
bogdan90i replied to sixthmind's topic in Core developers
I just tried you solution, it was working well but the number for the cms page was the same with the number of a category page. And because of that when i selected the category, the cms link was on. So i edited your solution and it worked. I added to your solution: {$request_uri | strstr:"8-cmspagename"} So you must add the cms page friendly url not just the ID. -
[SOLVED] Header user info/User info block
bogdan90i replied to bogdan90i's topic in Configuring and using PrestaShop
thank you very much.- 3 replies
-
- move user info
- edit user info block
- (and 2 more)
-
[SOLVED] Header user info/User info block
bogdan90i replied to bogdan90i's topic in Configuring and using PrestaShop
some help please- 3 replies
-
- move user info
- edit user info block
- (and 2 more)
-
Hello, I would like to move the User info block right above the cart between the nav and cart. I searched, the module is installed in header of pages and top. But the "Log In/username" is on the nav bar. I looked in header.tpl and the hook top is in the right place but the User info Block is not in top of pages it hooks next to contact-us. I am using prestashop 1.6, default theme.
- 3 replies
-
- move user info
- edit user info block
- (and 2 more)
-
Switch between button mobile view and desktop view
bogdan90i replied to bogdan90i's topic in Configuring and using PrestaShop
Ok but i found in tools/mobile detect folder a file named Mobile_Detect.php and in it was this: /** * Utilities. * * @var array */ protected static $utilities = array( // Experimental. When a mobile device wants to switch to 'Desktop Mode'. // @ref: http://scottcate.com/technology/windows-phone-8-ie10-desktop-or-mobile/ // @ref: https://github.com/serbanghita/Mobile-Detect/issues/57#issuecomment-15024011 'DesktopMode' => 'WPDesktop', 'TV' => 'SonyDTV|HbbTV', // experimental 'WebKit' => '(webkit)[ /]([\w.]+)', 'Bot' => 'Googlebot|DoCoMo|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|facebookexternalhit', 'MobileBot' => 'Googlebot-Mobile|DoCoMo|YahooSeeker/M1A1-R2D2', 'Console' => '\b(Nintendo|Nintendo WiiU|PLAYSTATION|Xbox)\b', 'Watch' => 'SM-V700', ); It says "When a mobile device wants to switch to 'Desktop Mode'. I see it says experimental but i don't know how to implement it.- 4 replies
-
- mobile view
- switch between
-
(and 2 more)
Tagged with: