Jump to content

yashman

Members
  • Posts

    24
  • Joined

  • Last visited

Profile Information

  • First Name
    Manish
  • Last Name
    Gupta

yashman's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Hi, Until 2 days ago my PS 1.6.11 backoffice was working perfectly but suddenly today I cannot open it at all and it throws 404 Error. There are no changes done in URL, Admin Folder name, and AutoUpgrade is disabled. The Front End URL i.e., http://www.greatonlinesale.sg is working fine but not the backend. I need the solution urgently as it is a Live Instance. UPDATE: I tried to find some issues using the below steps 1) Enabled Prestashop Debug 2) Now the page shows the below error. I remember recently there was the blockuser module upgrade and I believe there was some issue in it. Now can you please share how to fix this issue. Sorry I am not a technical person, so please bear with me. Notice: Undefined variable: current_user in /home/greatonlinesale/modules/blockuserinfo/blockuserinfo.php on line 63 Appreciate early response.
  2. You need to activate the WebServices using CMS. Go to CMS -> Advanced Parameters-> WebServices. Once you do that you can use it to see the WebServices activated by visiting http://www.yoursite.com/API/
  3. Hi, PS Version: 1.6.0.11 Theme: Default with slight customization of Color and width Background: I am using www.appery.io to create a mobile app for my website. For this I have activated the WebService in the PS. I am able to access the data perfectly but facing some issues where I need some guidance. Kindly note, I am not a developer and am using the standard webservice features of PS Issue: As understood for PS, Category or Sub Category both are equal. Based on the XML I saw through the webservice, the SubCategories are also stored as Categories but associated using associations. So far I have managed to access the Categories but I am not sure how to access the Sub Categories. <prestashop xmlns:xlink="http://www.w3.org/1999/xlink"> <script id="tinyhippos-injected"/> <categories> <category> <id>...</id> <id_parent xlink:href="http://www.abc.com/api/categories/2">...</id_parent> <level_depth>...</level_depth> <nb_products_recursive notFilterable="true">...</nb_products_recursive> <active>...</active> <id_shop_default>...</id_shop_default> <is_root_category>...</is_root_category> <position>...</position> <date_add>...</date_add> <date_upd>...</date_upd> <name>...</name> <link_rewrite>...</link_rewrite> <description>...</description> <meta_title>...</meta_title> <meta_description>...</meta_description> <meta_keywords>...</meta_keywords> <associations> <categories nodeType="category" api="categories"> <category xlink:href="http://www.abc.com/api/categories/36"> <id> <![CDATA[ 36 ]]> </id> </category> <category xlink:href="http://www.abc.com/api/categories/35"> <id> <![CDATA[ 35 ]]> </id> </category> </categories> <products nodeType="product" api="products">...</products> </associations> </category> </categories> </prestashop> In appery.io I am using the below code the access the Webservice. The below code gives me the header level Categories. Now I want to have the SubCategories. http://www.abc.com/api/categories?ws_key=XXXXXXXXXXXXXXXX&filter[id]=[3,5000]&filter[active]=[1]&sort=[id_ASC]&filter[id_parent]=[2] Appreciate if anyone can guide on how to achieve the same. This issue also applies to Products, Product Images etc. basically anything that is tagged under the associations tag. I tried to access the api with http://www.abc.com/api/associations/ but unfortunately this does not exist.
  4. @archSandy, my question is different than what you are suggesting. Please read my question again. The settings that you have stated is a standard settings and is already working.
  5. Hi, I am using PS 1.6.0.11 with base theme with slight modifications in terms of Colors, Font and width. Issue: Currently, the New Arrivals block shows all the items added in the Catalog which is fine but it will show the products in sequence based on the add date. For example., If I add Item A, B, B1, C, D, E....S under Category Candy, system will show all from A to S in sequence and then will start showing another Category Items unless I shuffle the products and category while adding. Help needed: I am looking for help where the New Arrivals shown on Home Page 1) Can be set to limit the number of Items to be shown per Category 2) Items shown per Category is displayed randomly and with-in the limit I am not a PHP person so any help will be highly appreciated.
  6. Thanks @Nemo1 for the details. I looked at your blog. Will sure have a look at it. I am not as technical as you guys are but will surely try out in my development environment first
  7. Hey Guys, I am using PS 1.6.0.11 with default theme (with slight modifications in the coloring only). The issue that I see is with the Category. My understanding: While creating a new Category or Sub Category, there is an option to upload Image and Thumbnail. If I am not mistaken, Image is referred to the banner that will appear when the category page is opened, whereas Thumbnail image is shown in a collapsible mode. Correct me if I am mistaken here. Issue The issue is that I have the below Cat and Sub Cat format. When I click on CAT A, I see the banner and the page shows Sub Categories with No Image Available. I have already uploaded the Thumbnails but they do not appear. The sub category images only appear when I use Image field instead of Thumbnail. The same thumbnail image is shown as a banner when the sub-category page is opened. CAT A ---- SUB CAT A ---- SUB CAT B Let me know if anything I am doing wrong.
  8. Although this topic is little old, still posting. Following vekia's solution, then clear the cache using performance option.
  9. Although this post is solved and little old but thought of sharing a nice and hassle free solution list @ http://nik.chankov.net/2012/06/05/prestashop-adding-text-blocks-in-the-template/
  10. Thanks bellini, I found the solution which is very simple. The solution is listed here http://nik.chankov.net/2012/06/05/prestashop-adding-text-blocks-in-the-template/
  11. Thanks bellini, thanks for the tip. I have used the one below in HTMLTemplateInvoice.php - added $cmspage and in $data array public function getContent() { $invoice_address = new Address((int)$this->order->id_address_invoice); $country = new Country((int)$invoice_address->id_country); $formatted_invoice_address = AddressFormat::generateAddress($invoice_address, array(), '<br />', ' '); $formatted_delivery_address = ''; if ($this->order->id_address_delivery != $this->order->id_address_invoice) { $delivery_address = new Address((int)$this->order->id_address_delivery); $formatted_delivery_address = AddressFormat::generateAddress($delivery_address, array(), '<br />', ' '); } $customer = new Customer((int)$this->order->id_customer); $cmspage = new CMS(1, $this->context->language->id); $data = array( 'order' => $this->order, 'order_details' => $this->order_invoice->getProducts(), 'cart_rules' => $this->order->getCartRules($this->order_invoice->id), 'delivery_address' => $formatted_delivery_address, 'invoice_address' => $formatted_invoice_address, 'tax_excluded_display' => Group::getPriceDisplayMethod($customer->id_default_group), 'tax_tab' => $this->getTaxTabContent(), 'customer' => $customer, 'cms_page' => $cmspage ); if (Tools::getValue('debug')) die(json_encode($data)); $this->smarty->assign($data); return $this->smarty->fetch($this->getTemplateByCountry($country->iso_code)); } In invoice.tpl file, I am calling this {$cms_page->content} but the output returned is "Array" as a value. Is there anything that I am doing wrong.
  12. thanks bellini13. I have already modified the existing template but I am not sure how to hook the CMS pages inside the Invoice (after the items table)
  13. Sorry forgot to mention it while creating the post. I am using PS 1.6.0.11 with custom theme (copied the default theme and changed the coloring the width of the shop)
  14. Hi, I need some help with regards to adding the Terms and Conditions (only some clauses as mentioned below) in the Invoice once the order is placed by the customer. These instructions needs to be attached after the Order details. Terms and Conditions Sections that I want to insert in the Invoice template are (these are the 3 different CMS pages and are hidden for Front-End display) 1. General Agreement Section 2. Delivery Policy 3. Pricing Policy Appreciate.
  15. Since this post of pretty old but worth adding the link that I have found for PS 1.6 to do complete data reset without any coding. Refer this link http://creatingawebstore.com/how-to-remove-sample-data-in-prestashop-1_6.html
×
×
  • Create New...