Welcome, Guest. Please login or register.
Login with username, password and session length


VirtueMart 1.1.8 - [SECURITY RELEASE] is available! Read more....

  Advanced search

247038 Posts in 67506 Topics- by 258314 Members - Latest Member: aniketana
VirtueMart ForumVirtueMart 1.1.xAttributes, Child ProductsChange child product's name to parent product's name?
Pages: [1]   Go Down
Print
Author Topic: Change child product's name to parent product's name?  (Read 1536 times)
cameront21
Newbie
*
Posts: 22


« on: May 26, 2010, 15:31:48 PM »

Any way that on the front end for site users I can change the name of child products to that of their parent product's name.

Example

Parent product name is "Product 1"

Child products are named "Child Product 1"
Child products are named "Child Product 2"
Child products are named "Child Product 3"

Change the addtocart_list_multi.tpl.php and other files to show the child product's names to "Product 1".

Also wound need to make sure that Parent products name shows up this way in any place a site user could see the product (cart, checkout pages, order pages in account section, admin section order pages, all invoice pages, any others im not thinking of).

On the back end, everything remains the same as far as naming.

Thanks
Cameron
Logged
lowmips
Global Moderator
Hero Member
*
Posts: 1134


WWW
« Reply #1 on: May 26, 2010, 16:35:52 PM »

Why not name the child products the same as the parent? I have a client who did that, and added attributes for the child products (the only real difference between the products was the size).
Logged

Visit my website at www.lowmips.com
View my newsletters Here (sign up for newsletters on the front page of my website)
cameront21
Newbie
*
Posts: 22


« Reply #2 on: June 07, 2010, 17:01:31 PM »

Unfortunately I would like to submit my products to "Google Shopping" so Products named "T-Shirt" wont optimize as well as "T-Shirt Black XL". So again does anybody know what the code would be to pull in the parent product name instead of the name of the child product?

Thanks
Logged
cameront21
Newbie
*
Posts: 22


« Reply #3 on: June 10, 2010, 17:08:49 PM »

Come on, anybody, what is the php code to display the parent product name?
Logged
Resonanz
Newbie
*
Posts: 12


« Reply #4 on: June 07, 2011, 21:33:17 PM »

I would like to know this too. In case anyone is wondering why in case the end does not justify the cause:

We sell Albums, so...

Parent: Dark Side of the Moon
Child 1: Buy CD
Child 2: Buy MP3

It would be not look good in the cart for the item to be called "Buy CD" nor would would it look good on the product details page for:

Dark Side of the Moon
Dark Side of the Moon CD (ADD TO CART)
Dark Side of the Moon MP3(ADD TO CART)
Logged
H.B.
Newbie
*
Posts: 3


« Reply #5 on: June 14, 2011, 19:06:42 PM »

I am facing this same issue. Has anybody got the solution yet?
Logged
Pages: [1]   Go Up
Print
Jump to: