Jump to content

ajaxsoap

Members
  • Posts

    7
  • Joined

  • Last visited

Profile Information

  • Location
    Manila
  • First Name
    Marvin
  • Last Name
    Villanueva

ajaxsoap's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hi, My client has an old prestashop 1.2 store and he wants to transfer this to a new domain for the purpose of auditing old orders, the back office is not accessible currently, only the cpanel and phpmyadmin db, I've already transfer the hosting dns to registrar and add the domain on cpanel, after this, on 1.4+ version the next step is to alter the shop url table on phpmyadmin to the new shop domain, but in version 1.2 the database has no shop url table. The shop is not accessible as of this writing, its probably i'm missing something on the configuration. Is there anyone in here has an experience in version 1.2 that can help me configure it to new domain? Thanks in advance!
  2. @rxdue Have you already figure this out? I've the same problem, i need to expose short description on orders back office products section. @probablement I think this is already address on root > classes > Product.php line 69 - ** @var string Short description */ public $description_short; But I haven't figure it out on what is to be done, I've tried this {$product.description_short} but to no avail.
  3. Thanks for the reply Jered! After importing I have to manually associate each product with it's respective subcategory given the main category is included during importing.
  4. Is there a way to import product with subcategories field? Currently, only the main categories are supported for products import. The reason why i'm asking is, my store has a lot of subcategories and products and a few main categories, it's a tedious work to manually associate every single product in a subcategory. Is there a workaround for this? Thanks in advance! Marvin
  5. I'm happy to report that I've managed to solve my problem! Here's the code snippet: {$product.name|regex_replace:"/\b.*[^.][^:]:/":" "|escape:'htmlall':'UTF-8'} I've played around on regex 101 to explore any possibilities. Since my goal is to display only the characters on the right side, first, I've formulate a regex selecting to the right of ":", but since i'm using regex_replace, I've reversed it to select to the left and replace it with " ". Last question, do I have to create a modifier for this? Thanks to all of you who responded! Cheers!
  6. Thanks to all your responses! Really appreciate it! The string that is to the left of ":" is actually a sub category were the product is belong to, the way I inputted product name is this "subcategory: product name" but I want it to display on front office only the product name. The rational behind this decision is because of the way prestashop displayed it in shopping cart summary, by default only the product name appear on the cart not with a subcategory. Instead of revising the cart summary template I decide to revise only the product list template. I wanted to display in the product list only the product name without the subcategory ("remove:"product name) but in the cart summary the normal product name with subcategory (subcategory:product name). I hope that clarifies my intention. I've came across this thread on smarty forum to use a regex replace: {$address|regex_replace:"/(.*@)/":"@"} But the respondent suggested not to put the regex in the template but create a modifier. I haven't look on how to create modifier yet. Thanks
  7. Hi, I would like to ask how do you remove or should I say reverse truncate or replace a character before ":" or to the left of ":"on a product name? Ex. TOPS: TOPS Acrylic Emulsion Clear Gloss I would like it to display it like this: TOPS Acrylic Emulsion Clear Gloss I tried to this code {$product.name|truncate:20:' ':true:true|escape:'htmlall':'UTF-8'} but the output is this: TOPS: TOP ear Gloss What should be the proper way to accomplish this? Thanks in advance! Marvin
×
×
  • Create New...